If you could make any changes to D, what would they look like?

Paul Backus snarwin at gmail.com
Mon Oct 25 21:49:15 UTC 2021


On Monday, 25 October 2021 at 20:59:54 UTC, Ola Fosheim Grøstad 
wrote:
> On Monday, 25 October 2021 at 20:41:25 UTC, Paul Backus wrote:
>> In other words, it makes code easier to reason about and 
>> concurrency bugs easier to isolate.
>
> That remains to be seen? There is really nothing that prevents 
> another thread from writing to something that @safe code has 
> access to. So not sure how this is a better situation than C++ 
> has...

Sure, there's nothing preventing `@system` code from causing 
undefined behavior. The difference is that in C++, all of your 
code is `@system`; in D, only some of it is.


More information about the Digitalmars-d mailing list