Small poll

Taavi Talvik taavi@REDACTED
Wed Dec 10 20:33:50 CET 2003


On Wed, 10 Dec 2003, Vlad Dumitrescu wrote:

> > test(A) ->
> >     a + 42.
>
> For the "A vs a" problem, there is already a warning being issued. Possibly
> the full warnings options should be enabled by default?
>
> Since both a and 42 are constants, I feel it would be easy (besides useful)
> to be able to detect it at compile time. The operation should even be
> evaluated at compile time, IMHO.

Exactly. And if compile time evaluation fails, give compile time error
{badarith,....}.

best regards,
taavi




More information about the erlang-questions mailing list