DIP65: Fixing Exception Handling Syntax

via Digitalmars-d digitalmars-d at puremagic.com
Sat Jul 26 05:09:52 PDT 2014


On Saturday, 26 July 2014 at 10:48:56 UTC, Paolo Invernizzi wrote:
> On Friday, 25 July 2014 at 23:12:33 UTC, Walter Bright wrote:
>> On 7/25/2014 3:56 PM, David Nadlinger wrote:
>>> Let's just get rid of "catch {}" which encourages unsafe code 
>>> and be done with it.
>>
>> We need to stop breaking code.
>
> At SR Labs, we have no problems at all with that kind of 
> breakage: the LOCS of D code here is growing big, so let's take 
> that kind of adjustment to the language right now, thinking a 
> lot about it, but right now and for a better language.
>
> That kind of braking are in the opinion of my company really a 
> no-issue.

+1

The compiler will detect it, it can suggest what to use instead, 
and it can even be properly deprecated first.

"Bad" breakage are things that break silently. This, however, is 
an example of "good" breakage, as it can be detected easily, 
there is a clear migration path, and it is an overall improvement 
to the language.


More information about the Digitalmars-d mailing list