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

The partial application proposal looks reasonable and intuitive. Definitely something I would use. Is there any prior art (other languages etc.)?

Mh, it's already 4 years old. What a shame.



There’s a lot of bikeschedding on how to use it in conjunction with the (also stage 1 proposal and forever delayed) pipeline operator[1] unfortunately. Add in never ending arguments on which symbol we should use (the questionmark has a lot of responsibilities already) and here we are.

To make matters worse it appear that generally OOP style darlings such as static class blocks and true private fields seem to gain more momentum.

[1] https://github.com/tc39/proposal-pipeline-operator/wiki



Clojure has the "thread-as" macro (`as->`), but I don't think it's used much: usually thread-first (`->`) and thread-last (`->>`) will more than do the job and have less mental overhead due to their regularity.


Scala has partially applied functions that use a very similar idiom




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

Search: