Comment

Comment by IshKebab

I always thought currying was a bad idea.

It makes the code way less readable:

* more difficult to distinguish arguments and return values (there's a reason most languages have distinct syntax for them)

* it encourages you to put your arguments in an order that might not be the most logical

And on top of that it only works for the last argument(s).

Feels like a lot of disadvantages to allow an overly clever trick that you can do in other languages much more readable using lambda functions. And those work for any arguments, not just the last one(s).

parent IshKebab 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton