Fog Creek Software
g
Discussion Board




Unexceptional examples

"If Joel's error returns are a hammer then our exceptions are a power screwdriver. When used correctly, with the correct parts of the rest of our toolbox our power screwdriver is considerably more powerful and elegant than a hammer. The problem is that most of the people using it seem to just hold it by the end and swing it at their nails. "

http://www.lenholgate.com/archives/000192.html

"So, in summary; Exceptions when used correctly with the idioms and parts of the language that support them are clearly superior ;) to error returns. They can be misused, or used as a replacement for error returns and that's less effective."

Len Holgate (www.lenholgate.com)
Thursday, October 16, 2003

I stopped reading after "Joel wants Ned to rename the functions in his exceptions are better example".

Proof Read Please!
Thursday, October 16, 2003

That's too bad--the typo seems to be fixed now, and if you read on, you'll find a very nice exposition of a rollback mechanism using exceptions.

Michael Eisenberg
Thursday, October 16, 2003

*  Recent Topics

*  Fog Creek Home