At 10:26 +0000 98/09/15, S. Achterop IWI-120 3932 wrote:
>Wouldn't it be better if Standard Haskell had "save" Int's, that is a
>version that simply
>would abort the program when encountering a overflow.
>This can be implemented without too much of a penalty on the more relevant
>benchmarks.
If one should have such overflows checks, it does not make much
difference what the program does, for the sake of the efficiency in the
non-overflow case, once an overflow has detected.
And aborting a program is what does not want to be hardwired into a
compiler or interpreter, as the programmer then does not have any means to
recover.
So this should be avoided from that standpoint.
Hans Aberg
* Email: Hans Aberg <mailto:[EMAIL PROTECTED]>
* Home Page: <http://www.matematik.su.se/~haberg/>
* AMS member listing: <http://www.ams.org/cml/>