3 ms·
That usage means "was the optional value set?" That's the whole point of an optional type, and there is absolutely no reason to prevent it.
by geezerjay 8y ago
That usage means "was the optional value set?" That's the whole point of an optional type, and there is absolutely no reason to prevent it.
- hoppelhase 8y agoThere is. See: https://news.ycombinator.com/item?id=17275784 https://news.ycombinator.com/item?id=17275784
- geezerjay 8y agoI've already explained why that argument makes no sense https://news.ycombinator.com/item?id=17276845 https://news.ycombinator.com/item?id=17276845
- hoppelhase 8y agoCould you elaborate more on why having the compiler tell us that we forgot to change something wouldn't be a good thing?