Optional braces

kennytm kennytm at gmail.com
Thu Aug 25 22:27:42 PDT 2011


Walter Bright <newshound2 at digitalmars.com> wrote:

> We've already put a number of special cases in the grammar to ward off "bugs".
> 
> But I worry that we might wind up tarting up the language with too many a
> boatload of them, to the point where it becomes a confusing mass. At what
> point should Meg Ryan stop with the plastic surgery? :-)

The surgery is just that you need to add an error or warning when you see
an IfStatementWithElse (and TryStatement too?) used directly in a
ScopeStatement, and change ElseStatement's rule to IfStatementWithElse |
ScopeStatement.


More information about the Digitalmars-d mailing list