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 <[email protected]> wrote: > On Sat, Oct 17, 2015 at 5:32 PM, Robert Virding <[email protected]> > 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 >
_______________________________________________ eeps mailing list [email protected] http://erlang.org/mailman/listinfo/eeps
