News for hackers. Stuff that matters.
Re:Portacle – A Portable Common Lisp Development Environment by kazinator on Thursday January 05, 2017 @05:34AM (#13326108)
But we can easily write a function plus such that (plus) returns (lambda (x y) (+ x y)), (plus 1) returns (lambda (y) (+ 1 y)) and (plus 1 1) just returns 2.

And we can make a function writing macro to simplify writing such a function.

Re:Portacle – A Portable Common Lisp Development Environment by lispm on Thursday January 05, 2017 @06:13AM (#13326259)
True: but still you have to decide at definition time what kind of function it is.

Plus it adds bloat to the function. Ideally the currying would be a task for the compiler/interpreter.

Re:Portacle – A Portable Common Lisp Development Environment by kazinator on Friday January 06, 2017 @05:39AM (#13335338)
Definition time is a big deal in static languages. For us, that could be while the app is running. I want that three arg function inside that running service to curry if called with two args, with no restart. Poof, done.