4 ms·
I do enjoy seeing C++ pick up these features from other languages. ... it's unfortunate that the feature then ends up in C++ syntax, which is increasingly divo
by shadowgovt 1y ago
I do enjoy seeing C++ pick up these features from other languages.
... it's unfortunate that the feature then ends up in C++ syntax, which is increasingly divorced from the way it's used today, the kind of thing that nobody would have written from scratch if they were starting day-1 with these ideas in play. I look forward to having the features, but not to having to read things like `const auto flt = [&](int i) -> std::optional<int>` or `for (auto i : std::views::iota(1, 10) | std::views::transform(flt))`.
- chris_wot 1y agoyou can pipe from a for statement now?!?
- aw1621107 1y agoThe pipe is entirely inside the for loop in the example.
- chris_wot 1y agoOh! so it is. Ta.
- shadowgovt 1y agoNot that it's easy to tell, given what C++ syntax has metastasized into.
- chris_wot 1y agoHmmm… I don’t mind all that much.