joews / peach

A functional programming language
MIT License
3 stars 0 forks source link

Add let expressions #27

Closed joews closed 7 years ago

joews commented 7 years ago

Either a classic let expression:

# classic let expressio
let
  x = y
  more = declarations
  ...
in
  expression 

Or something that feels more like a JavaScript block:

# more javascript-y
{ x = 2
  more = declarations
  ...
  expression
}
joews commented 7 years ago

Function bodies are now a list of expressions (#29), with the expression type and value set by the last expression.