Re:The Spiral Language
by skrebbel on Friday July 13, 2018 @02:25AM
(#17520893)
That's just normal partial function application, right? Or am I missing something special?
[ Parent
| on HN ]
Yes, but I adore the simple syntax.
inl add a b = a + b
is basically a macro #define add(a,b) a+b inl f = add 1
is a macro #define f add(1) f 2, f 3
but e.g. inl f = add c
would create a closure to capture c. inl would guarantee that the capturing is lexical, not dynamic.There's no need for the comma operator in args, comma is to create lists.