logoalt Hacker News

OptionOfTyesterday at 11:01 PM0 repliesview on HN

Reminds me of the weird C++ map operator[] behavior.

If you use that operator and the value doesn't exist, it'll default create one and return a reference to that.

And as I'm writing this I realize why... references cannot be `null`.