[eeps] New - EEP 44: Additional preprocessor directives

Robert Virding rvirding@REDACTED
Mon Oct 19 17:41:56 CEST 2015


Yes, I know you don't need the parentheses for any directives because of
the type stuff, but people still use them. My question was more why write
some with parens and some without.

Robert


On 19 October 2015 at 11:54, Björn Gustavsson <bjorn@REDACTED> wrote:

> On Sat, Oct 17, 2015 at 5:32 PM, Robert Virding <rvirding@REDACTED>
> wrote:
> > A minor question: why is it -if and -elif and not -if() and -elif() so
> it is
> > consistent with -ifdef()?
> >
>
> It seems to me that it is easier to read without
> the extra parenthesis, and that it makes the
> more "active" -if/-elif directives visually different
> from the "passive" attributes.
>
> Note that it is still legal to add extra parenthesis
> around the expression if you really want to.
>
> /Björn
>
> --
> Björn Gustavsson, Erlang/OTP, Ericsson AB
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/eeps/attachments/20151019/c1db3e81/attachment.htm>


More information about the eeps mailing list