This post originated from an RSS feed registered with Ruby Buzz
by Peter Williams.
Original Post: When To Use Exceptions
Feed Title: Peter Williams' Weblog
Feed URL: http://barelyenough.org/blog/tag/ruby/feed/
Feed Description: Random thoughs about software development, and anything else I find interesting.
Marty Alchin recently posted about the “evils” of returning None (or nil or null depending on your language of choice). I think
he has it basically right. Sure
there are situations where returning nil1 is
appropriate, but they are pretty rare. For example, if a method
actually does what the client asked and there is [...]