issues
search
jasonsbarr
/
wanda
Programming language for a tutorial series on building a compiler
7
stars
1
forks
source link
Functions
#5
Closed
jbarrmetro
closed
1 year ago
jbarrmetro
commented
1 year ago
def
and
fn
forms
def
form desugars to
(var <name> (fn ...))
Optional type annotations
All functions are curried
Functions can be variadic
More metadata for
rt.makeFunction
Annotations for function types
Add function contracts in core library
Add generic Visitor class and subclass it for desugaring
def
andfn
formsdef
form desugars to(var <name> (fn ...))
rt.makeFunction