@trust is an encapsulation method, not an escape
Vladimir Panteleev via Digitalmars-d
digitalmars-d at puremagic.com
Fri Feb 6 09:41:02 PST 2015
On Friday, 6 February 2015 at 16:19:00 UTC, Andrei Alexandrescu
wrote:
> On 2/6/15 5:13 AM, Vladimir Panteleev wrote:
>> That doesn't answer my question.
>>
>> A few years ago, I recall, you were arguing that for functions
>> which are
>> or may be exported to a DLL, thus all Phobos functions, it is
>> impossible
>> to predict how the functions will be used. Thus, you argued,
>> the
>> functions' input has to be validated, even if invalid
>> parameters can
>> only be passed to the function as a result of a program bug,
>> and never
>> user input.
>>
>> So, to repeat my question: which one is it? Have you changed
>> your mind,
>> or are there exceptions to the rules in the post you quoted?
>
> Could you all please grant me this wish - let's not get into
> that vortex again? It renders everyone involved unproductive
> for days on end. Thanks. -- Andrei
What is the problem? Sorry if my post sounded confrontational,
but I wasn't going to argue - I just want to understand the
language designers' current position on this topic.
More information about the Digitalmars-d
mailing list