3 ms·
To properly type Ramda, you need higher kinded types, which are not yet a feature of TypeScript. Though I find that Ramda's curried style isn't that useful now
by spion 10y ago
To properly type Ramda, you need higher kinded types, which are not yet a feature of TypeScript.
Though I find that Ramda's curried style isn't that useful now that we have arrow functions...
- Roboprog 10y agoHmm. I find that classes and subclasses aren't all that useful, now that I can use higher order functions :-) (I still use classes/objects for services with multiple related operations or polymorphism, but not for one trick pony "Executioners" for which Java would use a lambda -- which is what ES6 arrow funcs look like) I wish I could vote the grandparent post up more.
- spion 10y agoWhat I meant is that pointfree style (which is what Ramda implements) isn't that great in JS: * JavaScript is not suited for it (no composition operator, no interop with existing multi-argument functions) * It doesn't improve readability over arrow syntax. compose(f, flip(g)(y), h) vs x => f(g(h(x), y))