Skip to content

Commit

Permalink
Update LEARN.md
Browse files Browse the repository at this point in the history
  • Loading branch information
crnvl authored Jul 16, 2023
1 parent a7ca331 commit 31a11e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/LEARN.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ If you're coming from a
high-level language like Python or JavaScript, you may
find that NETL2 does not include the `else` keyword for `if` statements. That is, because `else` can often lead to spaghetti code, and NETL2 is designed to be as streamlined as possible.

Another missing keyword is `return`. In NETL2, all variables are global, and functions are called with the `!` operator.
To modify a variable, you simply assign it a new value. While this may seem like a bad idea for memory management, NETL2 is designed to be a scripting language, and therefore is not designed for large projects.
Another missing keyword is `return`. To modify a variable, you simply assign it a new value. Functions are called using `!`.

Functions need to be declared first, and then called with the `!` operator. Functions also do not have parameters. If you want to pass a value to a function, you can simply assign it to a variable before calling the function.

Expand Down

0 comments on commit 31a11e1

Please sign in to comment.