docs/gettingstarted.md: Remove the "Main" section

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-05-26 13:42:52 +02:00
parent 7ebf0ab5a4
commit 9e29ec8c29
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 13 deletions

View File

@ -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")
```