3 ms·
Ergonomics of std::optional and std::variant have nothing to do with bad foundations and all to do with the C++ committee insisting on these being library featu
by account42 1y ago
Ergonomics of std::optional and std::variant have nothing to do with bad foundations and all to do with the C++ committee insisting on these being library features rather than language features. I'm sure we will get the syntactic sugar eventually like we did get range-based for loops after having had to deal with macro approximations of foreach forever.
- fooker 1y agoYou’re right. I have some hope that the upcoming compile time reflection will make it easier to implement said syntactic sugar.