DIP65: Fixing Exception Handling Syntax

Brian Schott via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 17 03:12:07 PDT 2014


On Thursday, 17 July 2014 at 09:57:37 UTC, Walter Bright wrote:
> I.e. it's "why", not "why not" make a breaking change. 
> Especially since it is apparently a commonly used coding 
> pattern, appearing 25 times in Phobos alone.

What?

The plan is to keep the syntax that is used in Phobos and get rid 
of the one that is not used.

Part of the problem right now is that the grammar spec does not 
allow

catch (ExceptionType) doStuff();

I want to change the grammar spec to include this syntax.

I want to get rid of this:

catch doStuff();

I thought that was clear.


More information about the Digitalmars-d mailing list