Parenthesis around if/for/while condition is not necessary
FeepingCreature
feepingcreature at gmail.com
Wed Jul 4 08:19:09 UTC 2018
On Saturday, 23 June 2018 at 04:45:07 UTC, user1234 wrote:
> There is this case that requires parens:
>
> if a && b c;
>
> Is there a missing && or not ? It seems obvious for a human but
> compiler parsers are "apparatchiks", i.e rules are rules. That
> being said this would work by allowing parens for
> disambiguation.
Why not just require either parens or brackets?
More information about the Digitalmars-d
mailing list