David Pine @davidpine.dev · Nov 26

I wish that in C# I could define a keyword overload so to speak, for the "with" keyword. I'm really keen on using the "with" keyword and syntax to create non-destructive mutations, but I don't want to be limited to records. Nor do I want to write two methods. ☹️ #dotnet #csharp

4 likes 2 replies

?

Replies

Tim Purdum · Nov 27

I'm thinking you could do something with extension methods, but it wouldn't be as nice and concise.

Ravi Mohan · Nov 26

Haha yeah.. Especially when you are a full stack developer and you are using something like Typescript and then come back to c#. Arghhhh. Why can’t c# do this?!!