Link Details

Link 54098 thumbnail
User 111696 avatar

By bloid
via beust.com
Published: Nov 21 2007 / 20:39

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.
  • 24
  • 7
  • 1412
  • 593

Comments

Add your comment
User 209464 avatar

willcode4beer replied ago:

0 votes Vote down Vote up Reply

"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.

User 251813 avatar

Ryan Ginstrom replied ago:

0 votes Vote down Vote up Reply

The comments make it a valuable read.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.