Being lazy in C++

7 points by dalvrosa


camblomquist

std::optional is not to blame for the behavior we started with

I want to blame std::optional anyway. I'm not part of the committee, I don't know what the thought process was, but I'm constantly trying to use C++20 features and then find incredibly basic functionality like std::optional::or_else didn't make the cut and had to wait until C++23. Was it just an issue of time constraints? Was there some sort of discourse not settled until the next revision? Did they just forget?

kulach

I wish there was an option to provide an invocable type, it would be interesting to see if other languages try that method instead.