Safer D first draft

Walter Bright newshound2 at digitalmars.com
Mon Sep 23 15:49:28 UTC 2024


On 9/23/2024 6:50 AM, Lance Bachmeier wrote:
> I agree. I'd actually go a bit further and say that if it's turned on by 
> default, if anything, the effect would be to give users a false sense of 
> security - they'd be confused why checks here and there are missing (I certainly 
> wouldn't understand the reasoning).


Consider:
```
int* foo(int i)
{
     return &i;
}
```
which gives an error today by default. I don't think this is confusing.


More information about the dip.development mailing list