3 ms·
Isn't c++ a large language? And yet it's still used.
by mateuszf 7y ago
Isn't c++ a large language? And yet it's still used.
- cjensen 7y agoSure. But there are a lot of areas where you just shrug and say "here be dragons" and move on. For example, consider the new for loop syntax for (auto item: a().b().c()) ... Does this make you nervous? It should. In the above, suppose a(), b(), and c() are all returning objects. Which of these objects remains valid until the end of the for loop? And this is a dragon in one of the most helpful parts of new C++.
- mateuszf 7y agoYeah, I'm not a big fan of the language, I'm only saying it's used a lot. Seems that in this case there was not a lot of portable fast alternatives for system / device / high performance programming.
- bluGill 7y agoC++ is only slightly larger than any other language if you subtract the standard libraries that make a language useful. If you add standard libraries C++ is a tiny language. C++ does have a lot of weird, inconsistent warts that make it tricky to learn/use everything. Which is why most people who advocate to use C++ talk about modern C++ which is C++ where you stay away from those warts.
- the_why_of_y 7y ago"C++ a tiny language" - just in case anybody is missing the obvious sarcasm, people who have done it say that implementing a C++ front end takes a decade of effort: https://news.ycombinator.com/item?id=17130870 https://news.ycombinator.com/item?id=17130870
- bluGill 7y agoThose two statements are not incompatible. C++ has a lot of tricky areas that are hard to get right. It is still a tiny language.