lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2014-04-14 15:42 GMT+02:00 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:

> The error option has the advantage that it calls the programmer
> attention to the fact that the operation might not be doing what she
> intended, and so she has to be more explicit (e.g., ensuring that one of
> the operands is a float).

True. But when that programmer coded, three years ago, `eps = 2^-48`,
she did not know that one day it would be an error. And we do not (yet?)
have Python-style throwing and catching of exceptions.