[ prog / sol / mona ]

prog


Scheme has no currying

3 2020-10-31 08:36

Curring's necessarily a part of languages where every function takes a single argument. Like Haskell (Curry). The SRFI-26 style currying is different. To get real currying, you need a define or lambda form that adds extra lambdas for every argument in your formals list. I used SRFI-26 cut/cute when it was new and it helped me in one way, namely that it (mentally) lowered the bar to writing code with filter, map, folds, etc. That might be a disaster for performance sometimes, but let's write code that way and put pressure on compilers to get better at optimizing it instead! Rise up against the imperative tyranny, demand your sufficiently clever compiler! But really, SRFI-26 does not let you do anything you could not do before.

In summary, it's kind of meh. Chicken curry is good though (recommended).

6


VIP:

do not edit these