Re:Hardening the C++ Standard Library at scale
by IshKebab on Saturday November 29, 2025 @03:25PM
(#46090456)
Not only is this a silly No True Scotsman argument, but it's also absolute nonsense. It's perfectly idiomatic to use `*some_optional`.
[ Parent
| on HN ]
Re:Hardening the C++ Standard Library at scale
by on_the_train on Sunday November 30, 2025 @09:26AM
(#46096892)
It is with a prior .has_value call. It's not correct without. It's simple, and covered by static analysis. This is not an issue in real code, it's a pathologic error that doesn't actually happen. Like most anti c++ examples.