RfC for language feature: rvalue struct
TheZipCreator
thezipcreator at protonmail.com
Wed Jan 25 23:56:20 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.
>
> [...]
I mean, couldn't you just do this?
```d
struct Foo {
immutable:
int bar;
int[] baz;
}
```
Unless I'm missing something, I don't really see why an entirely
new language construct is required.
More information about the Digitalmars-d
mailing list