[Shootout-list] Many tests cheat
Isaac Gouy
igouy2@yahoo.com
Tue, 2 Nov 2004 17:23:24 -0800 (PST)
> > afaict felix doesn't have an exception handling mechanism?
> >
> > Isn't the felix program for the exception handling test completely
> > ignoring what the test asks to be done?
>
> That depends on what you mean by exception handling.
http://en.wikipedia.org/wiki/Exception_handling
-snip-
> If you mean C++ exception handling, you'd be right,
> but that's a language specific constraint which
> excludes all languages other than C++.
Or Ada or Mozart/Oz or Erlang or Java or Smalltalk or ...
> I'd note you would need to careful to use an operational
> constraint -- you just can't ban the Felix solution
> because it isn't 'throwing an exception'.
Nonsense - of course we can!
> Python can't throw exceptions either. Underneath, it passes them
> around as special values (a kind of C version of a
> Haskell monad .. :)
*Underneath*
Wrapped up with try & except & raise
__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com