4 ms·
People always think the next language, framework, paradigm, etc is going to solve all their problems. It's a pipe dream. You can write garbage in any language.
by vlunkr 4y ago
People always think the next language, framework, paradigm, etc is going to solve all their problems. It's a pipe dream. You can write garbage in any language.
- Ar-Curunir 4y agoYou can write less garbage in some languages (eg no memory safety bugs in safe Rust), or at least make it more difficult to write that garbage
- oynqr 4y agoYou can still write memory safety bugs, you just need unsafe. I'm glad unsafe is used in so many libraries.
- chousuke 4y agoLibraries are where unsafe belongs. Having unsafe be an explicit feature is immeasurably better compared to every line in the entire program potentially being unsafe. Opting out of safety is fine, but safety must be opt-out to be effective, not opt-in. A standard, enforced way to tell readers where the dragons lie is super helpful.
- Ar-Curunir 4y agoRight, note that I said safe Rust, which is the vast vast majority of Rust out there. This is a major improvement over, say, C, where any line of code could be potentially unsafe.
- nindalf 4y agoSome people don’t understand that reducing bugs and eliminating entire classes of bugs is progress. Their “gotcha” is that it’s still possible to write logic bugs, and therefore what’s the point of any language improvements?
- DeathArrow 4y ago>You can write garbage in any language. That's why some runtimes have garbage collectors.
- adrianN 4y agoIn sufficiently strict languages you can only write garbage specifications.
- sullyj3 4y agoWell, they solve some problems.