Arc Forumnew | comments | leaders | submitlogin
3 points by greatness 6159 days ago | link | parent

I like the idea of number two, but I'm not sure how useful it would be in arc where the language seldom requires X amount of arguments; for example:

  (< a)
works just fine and wouldn't be curried. So in order to make currying useful, we'd have to re-write a good chunk of arc code to make some of the optional arguments required.


1 point by drcode 6159 days ago | link

Point taken.

However, the core arc library commands, by their nature, are very general and hence have few mandatory parameters. However, most functions for any actual application will be far more specific and hence, I believe, will tend to be loaded with mandatory parameters. This is the use for case which function currying would be very valuable.

-----