Hacker News new | ask | show | jobs
by mhomde 4179 days ago
I don't think you should involve nullables ,the compiler would simply rewrite to check if link in the chain is null and then assign to null.

But value types are a good point, either it could then set it to default(T) or not set it at all, but it kinda has to be default(T) because null makes most sense for reference types. Might give some unexpected behavior if it variables are set to 0 because of a null reference