DIP 1028---Make @safe the Default---Community Review Round 1

Arine arine123445128843 at gmail.com
Tue Jan 7 18:18:06 UTC 2020


On Tuesday, 7 January 2020 at 13:32:32 UTC, Max Samukha wrote:
> On Tuesday, 7 January 2020 at 10:25:36 UTC, Ola Fosheim Grøstad 
> wrote:
>
>> However, in an unsafe language, or unsafe language mode, or 
>> unsafe language constructs, the compiler and runtime will not 
>> detect and stop programs that don't belong to the defined 
>> language.
>>
>> That is the meaning of "unsafe".
>
> Yeah, I know about that definition of "unsafe", thank you for a 
> lecture on basic CS. I still cannot agree that the term 
> "unsafe" is measurably more conventional than "unchecked" or 
> "system".

extern(System) @safe void foo()
{
}

I think system is over used as it is. And unsafe makes more sense 
than unchecked. Putting a ladder on a table is unsafe, it doesn't 
mean something bad is going to happen if you do. It just has more 
potential relatively to putting it on the ground.




More information about the Digitalmars-d mailing list