3 ms·
Anybody know why this got flagged off the front page? http://hnrankings.info/5893950/ http://hnrankings.info/5893950/
by anon1385 13y ago
Anybody know why this got flagged off the front page? http://hnrankings.info/5893950/ http://hnrankings.info/5893950/
- bfung 13y agoI don't know why, but take it as a signal that it this isn't as interesting to the HN community. If you think about it, it's not avoiding null checks, it's just moving it to a different place. The null check still needs to happen in order to know when to call the block, it just happens to be in the datasource.whatever code.
- masklinn 13y agoThe point is to move the check out of the library user's way, and out of his ability to forget about it. Same as block-scoped resource patterns (RAII, context managers, unwind-protect, whatever).