3 ms·
Hmm. 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 m
by Roboprog 10y ago
Hmm. 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))