[erlang-questions] simplified attribute declaration

Vlad Dumitrescu vladdu55@REDACTED
Thu Mar 18 10:59:05 CET 2010


On Thu, Mar 18, 2010 at 10:33, Bengt Kleberg <bengt.kleberg@REDACTED> wrote:
> Are you sure about -define without parentheses?

Yes, of course, I was too hasty -- the define is handled by the
preprocessor first and it doesn't recognize it without parantheses...
The problem there is that the definition needs not be an Erlang term,
so in that case the parantheses are necessary (or one can't have a dot
inside it). For well-behaved macros it shouldn't be too difficult to
make epp work without parantheses, if it's something people want.

In any case, since the current parser has this new functionality, it
would be useful to have it documented and either recommended or not
recommended to use except for -spec.

regards,
Vlad


More information about the erlang-questions mailing list