| ▲ | 9rx 5 hours ago | |||||||
> Like by not remembering to check if a pointer is nil? Rule of thumb is to not introduce values that aren't valid. Equally, don't put in -1 for an age value, even if the language allows you to. You might later forget to validate that the age value is valid. Yes, mistakes are possible, but these types of mistakes are pretty rare. There is some value in eliminating the possibility of those mistakes, sure, but we cannot pretend that it comes cost-free. There is good reason why almost nobody uses Rocq. > Or actually comparing one typed nil to a different typed nil? This is something that is likely to confuse, but not a facet of nil. It is related to interfaces. Let's not flail around like one of those wacky blow up things at the used auto lot. | ||||||||
| ▲ | stouset 3 hours ago | parent [-] | |||||||
Ah the good old “just be a perfect programmer and you won’t run into any issues” argument. Haven’t heard that one in awhile. | ||||||||
| ||||||||