Why use a scripting language?
C++ is a powerful language and an enormous improvement over C. However it is not the best choice for all tasks. The emphasis in C++ is run-time performance [Stroustrup94] and no feature will make it into the language if it makes programs run slower. Thus, C++ programmers are burdened with many restrictions and inconveniences. A few of the restrictions – that C++ programmers are so used to they usually don’t notice — include: • · Manual memory management: a huge amount of C++ programmer time is spent making sure that delete gets called at the appropriate time. • Link phase: C++ modules are linked together so that function addresses don’t need to be resolved at run-time. This improves run-time performance, but slows down the edit/test cycle. • Lack of introspection: C++ code has no way of knowing what members are in a class. This makes writing code to load and save objects an enormous task that in some scripting languages is a single call to a built-in function. C++ is static, scripting