RfC for language feature: rvalue struct

Dukc ajieskola at gmail.com
Mon Jan 30 13:53:53 UTC 2023


On Wednesday, 25 January 2023 at 16:23:51 UTC, FeepingCreature 
wrote:
> Before I take on the effort of writing up and submitting a DIP, 
> let me solicit feedback and see if anyone can see a reason why 
> this idea is dumb and doesn't work.
>
> tl;dr: `immutable struct` was a mistake: it's too weak. `rvalue 
> struct` is what we really want.

Isn't this what private/`@system` (DIP1035) fields with 
public/`@trusted` getter functions are for?


More information about the Digitalmars-d mailing list