3 ms·
Perhaps this method could be used by a strongly-typed compile-to-js curried language. (PureScript, Elm, and friends)
by zeckalpha 11y ago
Perhaps this method could be used by a strongly-typed compile-to-js curried language. (PureScript, Elm, and friends)
- skwosh 11y agoI 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 11y agoHence a "curried language".
- tel 11y agoYeah, but a technique like this just isn't useful there. The host language handles when function application occurs.
- zeckalpha 11y agoNo, 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.