If you could make any changes to D, what would they look like?
Sebastiaan Koppe
mail at skoppe.eu
Thu Oct 21 20:26:47 UTC 2021
On Wednesday, 20 October 2021 at 09:47:54 UTC, SealabJaster wrote:
> Just for giggles, without pesky things like breaking changes;
> rational thinking, logical reasoning behind the changes, etc.
>
> What interesting changes would you make to the language, and
> what could they possibly look like?
Unique/Isolated; A way to declare or require that an object (both
struct and class) cannot have more than one reference.
For instance, it is perfectly fine to move an AA across thread
boundaries if there is only one reference to it. But in the
general you can't because you can't proof there is.
This touches on @live a bit, but @live is put on functions
whereas I want it on objects (class+structs).
More information about the Digitalmars-d
mailing list