[erlang-questions] How about a new warning? Was: Re: trouble with erlang or erlang is a ghetto

Kenneth Lundin <>
Wed Aug 17 19:09:03 CEST 2011


We in the OTP team think this is a good idea but we can't say when we would
have time to implement it.

It should be quite simple to implement mostly involving the module erl_lint.

A nice user contrib would make it possible to introduce quicker.

The possibility to turn on and off per function is not so important ,
Can be added later if needed and would require some extra thought.

/Kenneth Erlang/OTP Ericsson

Den 29 jul 2011 01.45, "Richard O'Keefe" <> skrev:

One of the things criticised in the blog entry that we've been responding to
was
that
       {ok,Foo} = bar(...),
       {ok,Foo} = ugh(...)
is too easy to write (when you really meant, say, Foo0, Foo1).

This is a well defined part of the language, and it would not be a good idea
to
ban it.  But how about an optional style warning (and we really need
       -warn(on | off, [warning...])
directives) whenever a bound variable appears in a pattern on the left of
"="?


_______________________________________________
erlang-questions mailing list

http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110817/1d13572e/attachment.html>


More information about the erlang-questions mailing list