Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zeckalpha
on July 20, 2015
|
parent
|
context
|
favorite
| on:
Currying in JavaScript
Perhaps this method could be used by a strongly-typed compile-to-js curried language. (PureScript, Elm, and friends)
skwosh
on July 20, 2015
[–]
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).
zeckalpha
on July 20, 2015
|
parent
[–]
Hence a "curried language".
tel
on July 20, 2015
|
root
|
parent
[–]
Yeah, but a technique like this just isn't useful there. The host language handles when function application occurs.
zeckalpha
on July 24, 2015
|
root
|
parent
[–]
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: