Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


You’re right.

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: