Parenthesis around if/for/while condition is not necessary

aliak something at something.com
Mon Jun 25 12:19:15 UTC 2018


On Monday, 25 June 2018 at 10:38:49 UTC, Basile B. wrote:
> On Monday, 25 June 2018 at 10:36:46 UTC, Basile B. wrote:
>> On Sunday, 24 June 2018 at 23:08:15 UTC, aliak wrote:
>>>
>>> Wow nice, that was quick, would it be much more to make it so 
>>> that braces are required with if statements that do not start 
>>> with an open paren?
>>
>> It's in the commit.
>
> https://github.com/BBasile/dmd/commit/5455a65c8fdee5a6d198782d1f168906b59e6d3d#diff-cd066d37445cac534313c0137c2d4bbeR5599

Indeed! Totally missed that! PR Itttt!!! :D


More information about the Digitalmars-d mailing list