Parenthesis around if/for/while condition is not necessary

Basile B. b2.temp at gmx.com
Mon Jul 2 13:39:55 UTC 2018


On Monday, 25 June 2018 at 12:19:15 UTC, aliak wrote:
> 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

What i would make if i was a new comer. Language changes must be 
formally specified with a DIP. I don't especially want to write 
it but if one of the of the paren-less statements 'partisan' 
wants to then you can count on me if at a time an  implementation 
is required (even as demo in a first time).


More information about the Digitalmars-d mailing list