@safe by default

Atila Neves atila.neves at gmail.com
Fri May 31 16:36:08 UTC 2024


On Friday, 31 May 2024 at 12:50:55 UTC, jmh530 wrote:
> On Thursday, 30 May 2024 at 18:35:36 UTC, Atila Neves wrote:
>> https://github.com/atilaneves/DIPs/blob/safe-by-default/safe-by-default.md
>>
>> Destroy!
>
> I was glad to see some compromise on this. I'm still not 100% 
> behind it, but it is less objectionable than before, IMO.
>
> In terms of qualms, here is an example of a module that 
> contains a mix of code, some of which is bringing in compiler 
> intrinsics that don't have function bodies and part of it is 
> additional functions:
> https://github.com/libmir/mir-core/blob/master/source/mir/math/common.d
> Under this DIP, this would no longer compile,

It wouldn't compile because of the intrinsics? Wouldn't the fix 
then be to add attributes to them?



More information about the dip.ideas mailing list