You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say we have the following immutable records (I'm using the latest discussed record and wither syntax here, [ReadOnly] is a 🍝 attribute to show that the records are actually immutable):
The hardest part here is the indexer. Somehow most immutable collections should be able to recognize they are being used in a wither. Perhaps immutable property setters are needed for this to work transparently.
The text was updated successfully, but these errors were encountered:
@alrz I've updated the syntax to match the currently proposed one, even though it has the dreadful }), which I cannot force myself to write together despite never placing a ) on a line by itself otherwise.
Good idea about property patterns, I think this is much easier to implement since it's a straightforward transformation.
Let's say we have the following immutable records (I'm using the latest discussed record and wither syntax here,
[ReadOnly]
is a 🍝 attribute to show that the records are actually immutable):e.g.:
If we need to update the innermost element, even with some kind of a wither this looks like this:
The withers should be nestable, like this:
The hardest part here is the indexer. Somehow most immutable collections should be able to recognize they are being used in a wither. Perhaps immutable property setters are needed for this to work transparently.
The text was updated successfully, but these errors were encountered: