Not wishing to commit "thread-jack", but I must come out in favour of
exceptions.
The problem with many systems, though, is that exceptions are used for
trivial reasons, which is generally bad. The idea behind exceptions is
that they're used in "exceptional" circumstances, and sometimes people
forget that :-)
The alternative would be a system which uses magic return types from
functions, and other horrors. I've seen this so many times during my
career, and it makes me shiver each time:
Code:
--------------------
if (somethingBad) {
return -1;
} elsif (somethingElseBad) {
return -2;
} else {
...
}
--------------------
--
mflint
'Clicky-woo linky'
(http://www.insignificant.org/wiki/index.php/Slim_Plugins) to web page
of my plugins
------------------------------------------------------------------------
mflint's Profile: http://forums.slimdevices.com/member.php?userid=2102
View this thread: http://forums.slimdevices.com/showthread.php?t=29971
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta