Quantcast
Channel: Enfranchised Mind » Programming Language Punditry
Viewing all articles
Browse latest Browse all 20

null Sucks: A Case in Point

$
0
0
Take a look at this API: ClassNode#addProperty. Turns out that if you pass null into getterBlock and setterBlock, you get the default implementations. Maybe1. Normally passing null around blows up in unhelpful ways, but here null is a useful value. How is a programmer to know? I’m increasingly convinced that immutability2 and strong type systems […]

Viewing all articles
Browse latest Browse all 20

Trending Articles