Bad array indexing is considered deadly

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 1 11:37:13 PDT 2017


On 6/1/2017 3:56 AM, Jonathan M Davis via Digitalmars-d wrote:
> I get the impression that Walter tends to prefer treating stuff as
> programmatic error due to the types of programs that he usually writes. You
> get a lot fewer things that come from user input when you're simply
> processing a file (like you do with a compiler) than you get with stuff like
> a server application or a GUI. So, I think that he's more inclined to come
> to the conclusion that something should be treated as programmatic error
> than some other folks are.

It is a programming bug to not validate the input. It's not that bad to abort 
programs if you neglected to validate the input.

It is always bad to treat programming bugs as input errors.


More information about the Digitalmars-d mailing list