disabling compiler warnings

Thomas Arts <>
Wed Apr 19 15:41:10 CEST 2000


Thomas Arts wrote:
> 
> Gunilla Hugosson wrote:
> >
> > Based on my experiences from teaching Erlang courses,
> > the warnings really are useful. A more experienced
> > programmer can turn off the warnings like Mattias indicated.
> >
> > In my mind, an even better solution to the problem is to
> > rewrite the if.  Instead of:
> >
> >  if
> >    Bertil>3 ->
> >      Arne = true;
> >    true ->
> >      Arne = false
> >  end
> >
> > Write:
> >   Arne = if
> >            Bertil>3 ->
> >              true;
> >            true ->
> >              false
> >          end
> 
> Or use logic and write:
> 
> Arne = Bertil =< 3.

Uh, sorry, for those that read these: Arne = Bertil > 3.

/Thomas



More information about the erlang-questions mailing list