consequences of removing semicolons in D like in Python

Chris via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 20 08:42:10 PDT 2016


On Tuesday, 20 September 2016 at 15:36:42 UTC, Chris wrote:
> On Tuesday, 20 September 2016 at 15:31:21 UTC, eugene wrote:
>> On Tuesday, 20 September 2016 at 15:28:51 UTC, Chris wrote:
>>> Anyway, why don't you grab the compiler and make a version 
>>> that accepts line breaks and ";" - and see what happens?
>>
>> yes, i've written about it in the thread before
>
> Then try to compile Phobos and a variety of D projects on 
> Github and publish the results. It'd be interesting to see what 
> problems you encounter. Then you might write a tool like dfix 
> that fixes the source code so that ";"-less code is parsed 
> properly etc. But is it really worth it?

It'd be interesting, because it would finally provide data for 
the ever-recurring question of whether to have semicolons or not.

¿How would you handle cases like

debug { writeln("Error"); return; }

of just

debug { writeln("Error"); }


More information about the Digitalmars-d mailing list