update readme (unimplemented feature now implmeented)

This commit is contained in:
2024-10-19 01:22:08 -04:00
parent 44e5d74e5e
commit 5a8354f1ad

View File

@@ -45,7 +45,7 @@ Variables are **scoped** in Lamm, meaning they only exist in the single expressi
Scope in Lamm consists of a single expression, such as `sqrt + ** a 2 ** b 2`. So then, what do I do when I need a variable for more than a single expression? There are multiple solutions depending on your needs. Scope in Lamm consists of a single expression, such as `sqrt + ** a 2 ** b 2`. So then, what do I do when I need a variable for more than a single expression? There are multiple solutions depending on your needs.
### Multi-Statement Expression (half implemented) ### Multi-Statement Expression
You can create a multi-statement expression using either `()` syntax or the `~` operator, which `()` is simple syntactic sugar for. In these, only the value of the last expression is returned, the rest get ignored. This is the perfect place to put stateful function calls. You can create a multi-statement expression using either `()` syntax or the `~` operator, which `()` is simple syntactic sugar for. In these, only the value of the last expression is returned, the rest get ignored. This is the perfect place to put stateful function calls.