This blog post called Returning None is evil caught my attention. In this article, the author (Marty Alchin) tries to explain why you should never return None (this is Python's equivalent of None). Since he also takes this opportunity to take a few unnecessary potshots at Java, I thought I'd make a few comments.
Comments
willcode4beer replied ago:
"when you look up a key that doesn't exist in a dictionary, is this an error?"
Hmmm, if that "dictionary" is JNDI (or a content repository), you get an exception.
Ryan Ginstrom replied ago:
The comments make it a valuable read.
Voters For This Link (24)
Voters Against This Link (7)