RfC for language feature: rvalue struct
Paul Backus
snarwin at gmail.com
Wed Jan 25 17:28:10 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.
>
> [...]
I agree that `immutable struct` is a mistake. It's a weird
special case in the language, and because of that most D code is
not prepared to deal with it.
I am not convinced that the solution to this is to introduce a
new language feature that is even weirder and specialer.
More information about the Digitalmars-d
mailing list