3 ms·
> Traditionally you just check the value before assignment. And if you do this your entire problem "goes away". I wouldn't say spreading null checks and forget
by thomasahle 11y ago
> Traditionally you just check the value before assignment. And if you do this your entire problem "goes away".
I wouldn't say spreading null checks and forgetting them all over your code makes any problems "go away".
- mariusmg 11y agoYes, you're right. It's better to blindly do assignments and use code contracts to check the state after. Much cleaner. </sarcasm>