3 ms·
Ahh I'm sad. I really wanted x.f(y) to find f(x,y). Then std::algorithm and ranges would combine to make sweet linq-like filter/map operations.
by blt 11y ago
Ahh I'm sad. I really wanted x.f(y) to find f(x,y). Then std::algorithm and ranges would combine to make sweet linq-like filter/map operations.
- eco 11y agoYeah, I'm really disappointed. It's one of my favorite things about D. I guess f(x,y) finding x.f(y) is better than nothing but the other way around makes for some beautifully composable code.
- eru 11y agoLooks like poor man's partial application (and currying) to me?
- jeremiep 11y agoThat's how the D language does it! Functional programming in D is a joy in part because of this feature.