Re:Apple is patenting Swift features
by zmmmmm on Friday January 25, 2019 @06:17PM
(#19003551)
In Groovy you can mutate through optional (null-safe) chaining, eg:
[ Parent
| on HN ]
I knew I had seen this somewhere else. I don't understand why C# doesn't support this since most C# code is mutable anyway. I can see why it doesn't fit well with functional languages but C# usually espouses pragmatism over purity and having this would clean up a lot boilerplate null checking.