2 ms·
This is awesome! I ran into this exact issue yesterday evening trying to debug a NPE on foo.bar().baz().hello() IMO overhead should not even be a consideration
by opportune 8y ago
This is awesome! I ran into this exact issue yesterday evening trying to debug a NPE on foo.bar().baz().hello()
IMO overhead should not even be a consideration. It doesn't make sense to sacrifice detailed reporting just so someone can repeatedly handle NPEs as part of their application's logic. I can't imagine a situation in which I would look at code that throws enough NPEs for overhead to be a concern and say "yes this is well designed code"