News for hackers. Stuff that matters.
Re:We need to seriously think about what to do with C++ modules by account42 on Monday September 01, 2025 @10:45AM (#45093036)
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.
Re:We need to seriously think about what to do with C++ modules by fooker on Monday September 01, 2025 @12:12PM (#45093944)
You’re right.

I have some hope that the upcoming compile time reflection will make it easier to implement said syntactic sugar.