tadeuzagallo / verve-lang

A functional language for the working hacker
https://verve-lang.org
MIT License
346 stars 7 forks source link

Add basic pattern matching to `let` #14

Closed tadeuzagallo closed 8 years ago

tadeuzagallo commented 8 years ago

Basic example:

type Tuple = TupleInt(Int, Int)

printTuple(t: Tuple): Void {
  let Tuple(t0, t1) = t {
    print(t0, t1)
  }
}

Depends on #13 and #15