Bad array indexing is considered deadly

Brad Roberts via Digitalmars-d digitalmars-d at puremagic.com
Wed May 31 18:17:14 PDT 2017


On 5/31/2017 5:37 PM, John Colvin via Digitalmars-d wrote:
> P.S. Sometimes I do feel D is a bit eager on the self-destruct switch, 
> but I think the solution is to rise to the challenge of making better 
> software, not to be more blasé about pretending to know how to recover 
> from unknown logic errors (exposed by unexpected input).

This.. exactly this.  I've worked on software from the tiny device level 
to the largest distributed systems in the world and many in between.  
The ones that are aggressive about defining application correctness 
through asserts and similar mechanisms and use the basic precepts of 
failing fast are the most stable.  Problems are caught early, they're 
loud, obnoxious, and obvious.  And they get fixed, fast.

I'm happy that D takes a similar stance.  It makes my job easier.

- Brad



More information about the Digitalmars-d mailing list