consequences of removing semicolons in D like in Python
Chris via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 22 07:07:29 PDT 2016
On Thursday, 22 September 2016 at 13:44:33 UTC, eugene wrote:
> On Tuesday, 20 September 2016 at 15:42:10 UTC, Chris wrote:
>>
>> ¿How would you handle cases like
>>
>> debug { writeln("Error"); return; }
>>
>> of just
>>
>> debug { writeln("Error"); }
>
> it is handled by separating each statement with newline, not
> semicolon
What about braces and brackets?
debug { writeln("Error") }
Both `{...}` and `writeln("Error")` are clearly delimited.
More information about the Digitalmars-d
mailing list