▲ | motorest 4 days ago | ||||||||||||||||||||||||||||||||||||||||||||||
> The vast majority of C programmers will agree that they don't care for any of the new features,(...) I think this belief is based on faulty assumptions, such as survivorship bias. C++ became popular largely because it started off by extending C with the introduction of important features that the developer community wanted to use. The popularity of C++ over C attests how much developers wanted to add features to C. C++ also started being used over C in domains where it was not an excellent fit, such as embedded programming, because the C community prefered to deal with C++'s higher cognitive load as an acceptable tradeoff to leverage important features missing from C. The success of projects such as Rust and even Zig, Nim also comes at the expense of C's inability to improve the developer experience. Not to mention the fact that some projects are still developed in C because of a mix of inertia and lack of framework support. So to claim that the C programmers do not want change, first you need to ignore the vast majority that do want but already dropped C in favor of languages that weren't frozen in time. It's also unbelievable to claim that a language that precedes the concept of developer experience represents the apex of language design. This belief lands somewhere between Stockholm syndrome and being mentally constrained to not look beyond a tool. | |||||||||||||||||||||||||||||||||||||||||||||||
▲ | WalterBright 4 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
C++ became popular because in the late 80s, 90% of programming was done on the PC. Zortech C++, with the first native compiler, provided the most powerful metal programming language available. Zortech C++ is what gave C++ critical mass to succeed. P.S. before ZTC++, the traffic in the usenet C++ newsgroup was neck-and-neck with the objective C newsgroup. After ZTC++ was released, traffic in the C++ newsgroup took off and the objective C one faded away. Borland saw our success, and pivoted away from their nascent attempt at an OOP language towards implementing Borland C++. Microsoft then also abandoned their OOP C project (called C) in favor of developing C++. (I've never been able to get any information about C, I was just told about it by a Redmondian.) | |||||||||||||||||||||||||||||||||||||||||||||||
▲ | babaceca 4 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||
> So to claim that the C programmers do not want change, first you need to ignore the vast majority that do want but already dropped C... Good, we can ignore them. It's not a language for everybody, and if you're happily using C++, or Zig, or Nim, keep doing that. Developer experience is a weigted sum of many variables. For you cool syntax features may play a huge role of that, for most C programmers a simple language with clear and understandable semantics is much more important. There are many languages with cool syntax and shiny features, and very few of the latter kind. C belongs to the latter, and it also happens to be running a vast majority of the world's most important software. You keep bringing up Rust as an example. It's probably the most famous of the new-age systems languages. If it's such a great language, when will we see a useful program written in it? | |||||||||||||||||||||||||||||||||||||||||||||||
|