Skip to content

Somfic/som

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

The ‘som’ programming language

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages