3 ms·
Well, records are immutable so assignment must go to newly constructed instance, meanwhile new instance does not exist yet so any read must be from old instance
by marwis 3y ago
Well, records are immutable so assignment must go to newly constructed instance, meanwhile new instance does not exist yet so any read must be from old instance.
Seems very intuitive to me (and same as C#).
- pulse7 3y agoIf it is intuitive one does not need an explanation...
- funcDropShadow 3y agoTherefore, everything you already know is intuitive. Oh wait, does that mean that intuitive is not a property of this proposal but of the reader and the proposal? Ergo, it is almost useless to ask whether some programming language feature is intuitive or not.