Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/angelsflyinhell/netl2
Browse files Browse the repository at this point in the history
  • Loading branch information
crnvl committed Jul 16, 2023
2 parents 9175203 + 32a878a commit e012d53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![Check Build](https://github.com/angelsflyinhell/netl2/actions/workflows/check.yml/badge.svg)](https://github.com/angelsflyinhell/netl2/actions/workflows/check.yml)
# NETL2 - Streamlined high-level scripting
NETL2 is a scripting language that takes the no-boilerplate approach of Rust to the extreme while still
maintaining a readability you would expect from high-level languages. Additionally, NETL2 is designed to be concise and
Expand Down Expand Up @@ -32,4 +33,4 @@ Get started [here](./docs/LEARN.md)
test_fn!
}
nested_fn!
```
```
4 changes: 1 addition & 3 deletions docs/LEARN.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +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 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.

# Installation
Expand Down

0 comments on commit e012d53

Please sign in to comment.