[Shootout-list] Many tests cheat

Einar Karttunen ekarttun@cs.helsinki.fi
Wed, 3 Nov 2004 13:22:43 +0200


On 03.11 21:59, skaller wrote:
> How will you judge a Felix program?
> 
> For example the exceptions test ?

I don't like the approach in the exception test very much.

I would argue that it is invalid in e.g. C++, C, Haskell...
They are all capable of implementing Felix-style error handlers,
which are cheaper than exceptions when an error is detected.

However this makes error handling nontransparent and adds a 
fixed cost to the code which is why this technique is not 
commonly used. 

Is this technique commonly used in Felix? Does it scale and 
work with deep call stacks? I am not saying that it should
be banned outright, just that it does not look very well
in the spirit of the test.

- Einar Karttunen