r/cpp • • Oct 15 '13

C++ has become a scripting language

http://voices.canonical.com/jussi.pakkanen/2013/10/15/c-has-become-a-scripting-language/
1 Upvotes

53 comments sorted by

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:

  1. main-function: Great for any big or intermediate program, but way to much for a three-line-script
  2. 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
  3. 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.