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

Download history 211/week @ 2024-12-27 335/week @ 2025-01-03 15/week @ 2025-01-10 5/week @ 2025-02-14 1026/week @ 2025-02-21 849/week @ 2025-02-28

1,880 downloads per month

MIT license

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