Program logic bugs vs input/environmental errors

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sat Oct 4 13:12:43 PDT 2014


On 10/4/2014 3:30 AM, Steven Schveighoffer wrote:
> On 10/4/14 4:47 AM, Walter Bright wrote:
>> On 9/29/2014 8:13 AM, Steven Schveighoffer wrote:
>>> I can think of cases where it's programmer error, and cases where it's
>>> user error.
>>
>> More carefully design the interfaces if programmer error and input error
>> are conflated.
>>
>
> You mean more carefully design File's ctor? How so?

You can start with deciding if random  binary data passed as a "file name" is 
legal input to the ctor or not.



More information about the Digitalmars-d mailing list