From 9e29ec8c29b5452cd864d3c15c639eb6195ce2e8 Mon Sep 17 00:00:00 2001 From: Username404 Date: Thu, 26 May 2022 13:42:52 +0200 Subject: [PATCH] docs/gettingstarted.md: Remove the "Main" section Signed-off-by: Username404 --- docs/gettingstarted.md | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/docs/gettingstarted.md b/docs/gettingstarted.md index 1a3a146..4358eba 100644 --- a/docs/gettingstarted.md +++ b/docs/gettingstarted.md @@ -20,15 +20,7 @@ getHelloWorld: String >> { } ``` -### 2.1 - Main -Main can be a variable named `main` that contains an anonymous function, a function named `main` or a function that has the `as_main` attribute: -``` -main #= {} -main >> {} -as_main helloWorld >> {} -``` - -### 2.2 - Function parameters +### 2.1 - Function parameters Parameters can be added to an anonymous function by specifying the types as follows: ``` addIntToString: (int, String)~ #= { a, b; @@ -43,7 +35,7 @@ addIntToString(a: int, b: String) => { } ``` -### 2.3 - Function calls +### 2.2 - Function calls A function can be simply invoked like this if it has no parameters: ``` helloWorld() @@ -97,7 +89,5 @@ class Program { } } -main >> { - Program("World") -} +program #= Program("World") ``` \ No newline at end of file