Comment Comment by maccard I’m very much pro c++, but anti c++’s direction.> optional is unsafe in idiomatic use cases? I’d like to challenge that. std::optional<int> x(std::nullopt); int val = *x; Optional is by default unsafe - the above code is UB. parent maccard 11 months ago
> optional is unsafe in idiomatic use cases? I’d like to challenge that.
Optional is by default unsafe - the above code is UB.