3 ms·
Yes, more features make a better language. I need those features to abstract my software so I can wrap my mind around all 15 million lines of code I have to dea
by bluGill 6y ago
Yes, more features make a better language. I need those features to abstract my software so I can wrap my mind around all 15 million lines of code I have to deal with (that is both too many for one human to understand, and yet I know many will respond that they work on much larger system!).
We don't need new languages without features: it has already been proven that you only need exactly one feature in your programming language to write any program possible. Look up single instruction languages for proof that it is possible and such single features languages exist.
What we need are languages with many features that are easy to use to create complex programs that are still easy to understand.
C++ is a very powerful language, but the various features do not fit together well and so even experts tend not to know how to use everything and so the whole suffers. Most languages since then have attempted to take the [all or some subset of] the features of C++ to make a better language. (when any other language comes up with a good feature C++ copies it so is often getting credit for ideas that actually come from elsewhere - possibly better)
When someone is saying they want less features they mean one of the following: "I don't know how to use some feature and I've gotten this far so it must be useless". "That feature is useless for my domain so I don't want to pay the compromises required to allow it". "That feature is too often abused to write bad code and so it isn't worth having". "That features is neat but it makes the whole language ugly and so it isn't worth having". There is probably something I missed but you get the idea. Some of the above are logical fallacies, the others are compromises that apply to a particular problem. None of them are universal truths for problems.
- Thaxll 6y ago"Yes, more features make a better language" At the pace of what Rust is adding feature, it's the next C++ in the next 5-10years.
- steveklabnik 6y agoThe pace has already slowed down significantly, and will continue to do so. The RFC for GATs was opened in 2016. It's still not clear when this is hitting stable Rust yet.
- cogman10 6y agoCame here to say this. The last major language changing feature was async/await. Everything else seems to be on the order of small polish to the language (trailing commas), standard library expansion, and in some cases language restrictions to make rust fit better with embedded systems. In many ways, Java is seeing more major changes than rust is.
- dathinab 6y agoThe main difference is that in rust if you don't use a feature you in general don't have to know about it , many features are intuitive(-ish) and due to rust safety guarantees you can often just "try" if your intuitive understanding works and as long as it doesn't involve unsafe you normally don't have any bad surprises. In C++ this is less so the case. It's quite simple to write code which seems ok, currently happens to execute expected behaviour but triggers undefined behaviour.
- mbrodersen 6y agoSo what you mean is that Rust might end up being as successful as C++? One of the most successful programming languages ever created?