3 ms·
It would be nice if the betterC mode of Dlang would get traction. That fixes the worst weaknesses of C without having to create a whole new ecosystem.
by kevin_thibedeau 8y ago
It would be nice if the betterC mode of Dlang would get traction. That fixes the worst weaknesses of C without having to create a whole new ecosystem.
- MaxBarraclough 8y ago> without having to create a whole new ecosystem But it does, doesn't it? You're suggesting we replace C, which isn't necessarily a bad idea, but there are considerable hurdles, as it's a lingua franca. C has an excellent suite of compilers for every platform you can name, excellent development tools, every serious programmer already knows the language, and it easily hooks in to platform-specific functionality. If we want to replace C, we have a few languages to choose from: BetterC, Zig, Rust. If BetterC were a strict subset of C, things would be quite different, but it's not, so it has the just another language problem. If we want to go the subset route, we already have MISRA C, which blocks various categories of bugs and undefined behaviour. Crucially, it's possible to mechanically verify that a program is MISRA-compliant.