Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A neat solution, but you can’t alter the position of the argument per function.


Of course you can. In fact I'm doing just that in two places in the example.

(Yes I know what you mean, but yes you know what I mean!)

In the end, chains are about readability and logical flow; even if you don't like pre-wrapping in more meaningfully named functionals like the example, and accept the slight readability cost of using the occasional in-spot lambda or partial, I feel that this still becomes a lot more readable than "treat this symbol unconventionally in this context as a positional placeholder" hacky syntax stuff.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: