Discussion Thread: DIP 1028--Make @safe the Default--Final Review
Paolo Invernizzi
paolo.invernizzi at gmail.com
Thu Apr 9 08:14:30 UTC 2020
On Wednesday, 8 April 2020 at 21:14:14 UTC, IGotD- wrote:
> On Wednesday, 8 April 2020 at 20:47:40 UTC, Steven
> Schveighoffer wrote:
>> [...]
>
> Just to make a counter argument against extern(C) being @system
> by default which is perhaps a bit counter intuitive. The
> programmer wants get things done fast and in practice the
> programmer doesn't care about if the FFI functions are @safe or
> @system. The programmer just want to call the FFI function the
> @safe function just as usual. In practice a programmer will
> almost every time put @safe or @trusted for every function that
> are imported.
>
> [...]
The code of that programmer will never pass a decent code review,
plain and simple.
More information about the Digitalmars-d
mailing list