Parenthesis around if/for/while condition is not necessary

Timon Gehr timon.gehr at gmx.ch
Wed Jul 4 14:37:49 UTC 2018


On 24.06.2018 13:27, Basile B. wrote:
> 
> FYI this works fine, as expected it's just some small parser changes.
> I didn't touch to for and foreach for now. I think that SwitchStatement 
> is a candidate too.
> 
> https://github.com/BBasile/dmd/commit/5455a65c8fdee5a6d198782d1f168906b59e6d3d

if (a+b)*c == d { ... }


More information about the Digitalmars-d mailing list