consequences of removing semicolons in D like in Python

tcak via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 17 01:13:29 PDT 2016


On Saturday, 17 September 2016 at 05:03:17 UTC, Chris Wright 
wrote:
> On Fri, 16 Sep 2016 23:00:08 +0000, eugene wrote:
>
>> Hello everyone,
>> what if to remove semicolons at the end of each line of code 
>> in D like
>> in Python?
>> Is it worth it?
>
> It's more than reinterpreting newline as a semicolon. For 
> instance, we'd probably still want this to work:
>
> someObject.someField.someLongMethodName(
>   arg1,
>   arg2,
>   arg3);
>
> You might look into how javascript does it and what weirdness 
> ensues as a result.

Yup. Every time I write multiline expression in JS, I get 
uncomfortable thinking whether the browser will interpret as I 
think or not.


More information about the Digitalmars-d mailing list