4 ms·
C too offers language features for writing good code, but is also cursed by the power it gives the programmer. It's fantastic flow controls allowed us to move
by shakna 10y ago
C too offers language features for writing good code, but is also cursed by the power it gives the programmer.
It's fantastic flow controls allowed us to move beyond ASM and its convoluted jumps that can become difficult to reason about.
C++ gave us abstraction models that made reasoning about state easier in many ways, but spoils us by allowing us to try and abstract everything, and still possesses unexpected dangers.
Rust gives us abstraction over memory addresses, protecting us from ourselves, but still giving us some power, but sometimes getting in the way of the programmer.
There is a place for all of these.
I like that my RTC uses ASM, I like that my watch uses C, I like that my word processor uses C++, and I like that my web server uses Rust.
No one must be superior to the other. They aren't successors to each other. I think we find ourselves here: [0], and I think you and I may have to agree to disagree, because none of these languages is perfect, and they all impact each other.
[0] https://news.ycombinator.com/item?id=13173723 https://news.ycombinator.com/item?id=13173723
- pjmlp 10y agoI rather that neither C and eventually C++, are no where to be seen on that stack. Being almost the same age than C, and older than C++, means I know there were better ways of doing systems programming than any of them. Right now C++ is the lesser of both evil, until Rust, Swift, .NET Native, D, other safe language of the month, eventually takes over most of its use cases.