not quite a bug, but...
Thu Mar 21 10:55:24 CET 2002
>From: Sean Hinde <Sean.Hinde@REDACTED>
> > The faulty code was:
> > case NewTime = 0 of
> > true -> ...
> > false ->
> > end,
>Some people recommend getting into the habit of putting the constant first
> case 0 = NewTime of
> true -> ...
> false ->
That is a good suggestion, I used it in C but it was a loooong time ago so I
did forgot about it. :-)
However, I am only debugging old code, so it's not very useful then.
And also using a match as a case expression is not wise in any case, and I
think erl_lint should be able to warn about that, the way C-lint does.
Hämta MSN Explorer kostnadsfritt på http://explorer.msn.se/intl.asp
More information about the erlang-questions