/g/entoomen, I need some design advice.
I want to have a minimal syntax in my functional language. The best I can come up with is basically structs, but then that makes parameter passing strange.
tmp=
add.a=1
add.b=2
print add.c // prints 3 when tmp is executed
I'd like to be able to do the following, but I'm not sure how I want parameter passing to work.
tmp a1 b1 =
add.a = a1
add.b = b1
print add.c
// which calling method to use?
tmp 1 2
tmp.a1 = 1
Comment too long. Click here to view the full text.