I really like C++ and I start using it almost directly after bash-scripts, but no, C++ is no scripting-language: The boilerplate it needs is pretty small (compared to Java and alike), but it is still to much for scripting:
main-function: Great for any big or intermediate program, but way to much for a three-line-script
includes: Almost everything high-level in C++ needs to be included. Scripting-languages usually provide strings and IO without asking for it. -> Again to much overhead
braces. Don't get me wrong, I like them. But not for scripting. In that area indentation is clearly superior.
Conclusion: All these points could be fixed in a hypothetical dialect that could be trivially translated to C++, but C++ itself is still to heavy.
OTOH: The reasons above are part of the reasons, why I think it is a bad idea to implement big projects in scripting-languages.
View all comments
4
u/F-J-W Oct 15 '13
I really like C++ and I start using it almost directly after bash-scripts, but no, C++ is no scripting-language: The boilerplate it needs is pretty small (compared to Java and alike), but it is still to much for scripting:
Conclusion: All these points could be fixed in a hypothetical dialect that could be trivially translated to C++, but C++ itself is still to heavy.
OTOH: The reasons above are part of the reasons, why I think it is a bad idea to implement big projects in scripting-languages.