[erlang-questions] simplified attribute declaration
Kenneth Lundin
kenneth.lundin@REDACTED
Fri Mar 19 10:36:33 CET 2010
Hi,
The possibility to specify attributes without parentheses is a mistake
that we will corrected as soon as
possible. It was introduced together with the -spec and -type notation
which does not need parentheses.
I don't understand why it is cool.
Don't even try to use this syntax in your code you will be punished
with syntax error as soon as we fix this bug.
/Kenneth Erlang/OTP, Ericsson
On Thu, Mar 18, 2010 at 10:14 AM, Vlad Dumitrescu <vladdu55@REDACTED> wrote:
> Hi,
>
> I don't remember anyone mentioning this before, but I think it's cool
> and should be promoted as the recommended syntax:
>
> All attributes can now (R13) be specified without parantheses!
>
> -module hello_world.
> -export [init/1, stop/2].
> -define DEBUG(X), io:format("debug: ~p~n", [X]).
>
> best regards,
> Vlad
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>
More information about the erlang-questions
mailing list