4 ms·
> You appear to assume I like your choice of words, but no. I disagree with that assumption.
by orange8 7y ago
> You appear to assume
I like your choice of words, but no. I disagree with that assumption.
- jolux 7y agoWell, in that case, I will observe that static type systems and memory safety do eliminate the problems of ill-typed programs and memory unsafe programs, and that these are highly desirable properties for a lot of systems.
- orange8 7y agoAnd I will observe, once again, that all that means nothing without best practice and discipline.
- jolux 7y agoIt doesn't mean nothing without those things though. It means exactly the same whether or not you follow best practices or have discipline, that's the entire point. It will not ensure your code is good, it will merely ensure it does not have those problems.
- orange8 7y agoIf its about clean code, all that means nothing without discipline and good practice. Clean code is something humans do, not linters, compilers or languages.
- jolux 7y agoHave you written a significant amount of C? I ask this because you said you don't write any of it in a comment in which you suggested its problems could be avoided by following best practices and being disciplined. There are a set of problems that languages have that just cannot be solved by humans adopting better discipline or best practices. C's type system is unsafe, and its memory handling is an adjacent and related problem. Tools like Valgrind exist and they are considered best practices when writing C, but they do not claim and cannot hope to make it memory safe. Fixing that problem requires language-level intervention, and this has been solved most of the time with better static type systems. Anyone who writes a lot of C will tell you this, it is an inherent pitfall of the language's design and one to be avoided when designing new languages.