▲ | quotemstr 11 hours ago | ||||||||||||||||
> To me it sounds like you are using a poorly-designed language Not language specific. A C example that comes to mind is checking every non-nullable pointer parameter in every function for NULL and reporting an error instead of just letting the program crash. (Please, don't do that: just let contract violations produce crashes.) The article's author describes a problem of experience and spirit, not a language wart. | |||||||||||||||||
▲ | hnlmorg 10 hours ago | parent | next [-] | ||||||||||||||||
But the problem is literally a direct result of language wart. The nullable pointer you’ve given is another great example of language wart. And one that’s often highlighted as a specific criticism against Go lang. | |||||||||||||||||
| |||||||||||||||||
▲ | Turskarama 10 hours ago | parent | prev | next [-] | ||||||||||||||||
Let me blow your mind for a second: this problem is not insurmountable in language design, C is not a perfect language, and nulls are bad design. | |||||||||||||||||
▲ | ModernMech 4 hours ago | parent | prev [-] | ||||||||||||||||
Indeed, you've pointed out a second language in the class of "poorly-designed languages" |