3 ms·
"If it can be null, it will be null" So explicitly define what is allowed to ever be "null": http://lukeplant.me.uk/blog/posts/null-pointers-vs-none-vs-maybe/
by damncabbage 14y ago
"If it can be null, it will be null"
So explicitly define what is allowed to ever be "null": http://lukeplant.me.uk/blog/posts/null-pointers-vs-none-vs-maybe/ http://lukeplant.me.uk/blog/posts/null-pointers-vs-none-vs-m...
- bunderbunder 14y agoWould that we could all just up and switch programming languages at the drop of a hat like that. Explicitly defining what is ever allowed to be 'null' is a great habit that serves me extremely well during evenings and weekends. But it's completely useless to me, by virtue of being impossible, between 9am and 5pm.