Mutating immutable obects: with= #8465
Unanswered
AlwaysHC
asked this question in
Language Ideas
Replies: 2 comments
-
The proposed syntax looks awful in my opinion. Also I don't think this feature is worth the effort. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Very similar to #8114. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
public record Person(string FistName, string LastName);
Person person = new Person("John", "Doe");
//Changing last name...
person = person with { LastName = "Smith" };
//Proposal...
person with= { LastName = "Smith" };
Beta Was this translation helpful? Give feedback.
All reactions