logoalt Hacker News

uecker • yesterday at 12:32 AM • 3 replies • view on HN

I agree with this. And C could certainly be much further, if we only had a fraction of the resources the industry spend on C++ or Rust.


Replies

pjmlp • yesterday at 8:46 AM

It would not solve anything, when we still fail at having C developers to adopt simple tools like lint (1979).

➕ show 1 reply
benibela • yesterday at 6:02 PM

Imagine a fraction of the resources the industry spend on C was invested into Pascal

GuB-42 • yesterday at 12:44 AM

Again, this would be missing the point of C.

While the philosophy of C++ is "C with extra features", and it certainly delivers on extra features, C is all about simplicity and compatibility.

You want to touch C as little as possible. There are who knows how many thousands of C compilers for obscure platforms and decades old legacy code that all depend on C being stable. The industry mostly leave C alone not because they don't have the resources, but because the world runs on C and they certainly don't want to break things that work!

If what you want is a simple, explicit language that is well suited for system and embedded programming while being more modern than C, there is Zig.

I like to say that Zig is to C what Rust is to C++.

➕ show 2 replies