DIP65: Fixing Exception Handling Syntax
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jul 25 14:34:20 PDT 2014
On 7/25/2014 2:53 AM, Jakob Ovrum wrote:
> On Friday, 25 July 2014 at 09:39:23 UTC, Walter Bright wrote:
>> That can be special cased, too.
>
> Seriously? Where does it end?
>
> catch(MyTemplatedException!true) {
> }
That one can't be special cased in the parser.
> Parsing this as a proper type without a trailing identifier is a nice feature
> that a lot of people use, unlike the ghastly catch {} feature that nobody uses
> and should be considered harmful. Whether we constrain the former or kill the
> latter, they're both breaking changes. So why are we favouring the *bad* one?
Because it breaks the least amount of code.
More information about the Digitalmars-d
mailing list