Bump version to 0.2.24 and update docs

This commit is contained in:
imaqtkatt 2024-05-27 08:53:32 -03:00
parent 24b3219016
commit ac6f0fbb67
4 changed files with 17 additions and 6 deletions

2
Cargo.lock generated
View File

@ -62,7 +62,7 @@ dependencies = [
[[package]]
name = "bend-lang"
version = "0.2.23"
version = "0.2.24"
dependencies = [
"TSPL",
"clap",

View File

@ -2,7 +2,7 @@
name = "bend-lang"
description = "A high-level, massively parallel programming language"
license = "Apache-2.0"
version = "0.2.23"
version = "0.2.24"
edition = "2021"
rust-version = "1.74"
exclude = ["tests/snapshots/"]

View File

@ -32,6 +32,7 @@
"dref",
"dups",
"effectful",
"elifs",
"foldl",
"hasher",
"hexdigit",
@ -120,10 +121,7 @@
"walkdir",
"wopts"
],
"files": [
"**/*.rs",
"**/*.md"
],
"files": ["**/*.rs", "**/*.md"],
"ignoreRegExpList": [
"HexValues",
"/λ/g",

View File

@ -193,6 +193,19 @@ A branching statement where `else` is mandatory.
The condition must return a `u24` number, where 0 will run the `else` branch and any other value will return the first one.
It is possible to make if-chains using `elif`:
```python
if condition1:
return 0
elif condition2:
return 1
elif condition3:
return 2
else:
return 3
```
### Switch
```python