Re:Avoid Null Checks by Replacing Finders with Tellers
by mikeash on Monday June 17, 2013 @04:18PM
(#5895669)
Sadly, it's not too consistent there. For example, this is OK:
But this will crash on nil:
Nop-on-nil can be convenient, but without APIs that also nop on nil parameters, it can be a little annoying when you still have to check half the time.
[ Parent
| on HN ]
There are no comments on this comment yet.