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

Perhaps this method could be used by a strongly-typed compile-to-js curried language. (PureScript, Elm, and friends)


I haven't used either but since they're based on Haskell I would assume that currying is inherent to the language (functions are curried by default).


Hence a "curried language".


Yeah, but a technique like this just isn't useful there. The host language handles when function application occurs.


No, curried languages compiled output typically has tricks like in the OP and they typically rely on a run time system to help with the 'impedance mismatch' between curried and not languages.




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

Search: