News for hackers. Stuff that matters.
Re:T* makes for a poor optional<T&> by brandmeyer on Monday December 13, 2021 @05:47PM (#29545694)
To be fair, languages which require explicit unwrapping also provide syntactic short-hands for the most common idioms. Long-handed if/else (or pattern matching) is used to implement the short-hands or as a last resort.

See also value_or and the C++20 monadic methods on std::optional.

http://open-std.org/JTC1/SC22/WG21/docs/papers/2021/p0798r6....

There are no comments on this comment yet.