simplified attribute declaration

Vlad Dumitrescu <>
Thu Mar 18 10:14:28 CET 2010


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,

More information about the erlang-questions mailing list