Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In the first case I lost the information that the key exists and can contain a value.

The second form makes it explicit.

On the first case, the parser that's getting the data may want to calculate a sensible value. On the second one, it's clear the value is known.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: