31 releases (breaking)
new 0.23.0 | Mar 4, 2025 |
---|---|
0.21.0 | Mar 3, 2025 |
0.9.3 | Jun 13, 2024 |
#42 in Programming languages
1,880 downloads per month
105KB
2.5K
SLoC
som
An idiot admires complexity, a genius admires simplicity.
fn main() {
fib(10)
}
fn fib(n ~ int) -> int {
n if n < 2 else fib(n - 1) + fib(n - 2)
}
type Option<T> = Some(T)
| None
type Color = Red
| Green
| Blue
| Hex(string)
| Rgb(Rgb)
type Rgb = { r ~ int, g ~ int, b ~ int }
fn print_color(color ~ Color)
print(color)
Dependencies
~13–22MB
~326K SLoC