dip1000 and preview in combine to cause extra safety errors

rikki cattermole rikki at cattermole.co.nz
Wed Jun 8 23:56:01 UTC 2022


On 09/06/2022 11:47 AM, H. S. Teoh wrote:
> (And for the record, if the amended DIP were to be submitted today, I'd
> vote in favor. @safe by default is a good thing to have -- except on
> extern(C) interfaces to C code, which by definition is un- at safe -- the
> most it can be is @trusted, and I'm sure nobody wants @trusted by
> default.)

I'm in favor of turning on attribute inference instead.

It'll do the same thing (effectively) while also covering things like 
DIP1000's attributes too.

Why not try it and see how much breakage it would really cause? If 
hardly anything lets just do it without a DIP.


More information about the Digitalmars-d mailing list