On Thursday, 17 July 2014 at 19:28:31 UTC, Andrei Alexandrescu wrote:
On 7/8/14, 2:31 PM, Brian Schott wrote:
http://wiki.dlang.org/DIP65

tldr: There are parser and specification bugs and I want to fix them. It will break some poorly-written code, but I think I can automate the
upgrade process.

I vote we reject this DIP. It has clear appeal but there's also the issue with putting currently correct code on a deprecation path, with no obvious win in quality.

I think Walter's fix eliminates the problem during the semantic pass even though there's a grammar ambiguity. It's a judgment call, and by definition someone has to make it.


Andrei

Walter proposes putting currently correct code on a deprecation path with no obvious win in quality. He proposed getting rid of the "catch (SomeException)" syntax.

I suggest recognizing in the parser:

   ( Identifier )

as a special case, in addition to using Parser::isDeclaration(). Gradually we can turn that special case into a warning, then deprecation.

Reply via email to