[Issue 4559] Disallowing single semicolons

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jun 10 11:14:12 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=4559

--- Comment #5 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to uplink.coder from comment #4)
> (In reply to Andrei Alexandrescu from comment #3)
> > No need for a DIP, we should just convert this to an error.
> 
> If we do this, then we have to special case for(;;).

We're in good shape, the semicolons in for are part of the grammar.

> Also it might break an unknown amount of code.
> At the very least we should have a cost/benefit analysis.

The warning has been in there for years. The basic idea is to convert warnings
to errors.

--


More information about the Digitalmars-d-bugs mailing list