One of the biggest benefits I see is in applications which allow user defined logic.
Using the scripting API (or even the implementation specific api's) allows you to provide a means for a user to plugin their own logic into the application, such as form field validations, workflow lifecycle logic, etc....
You could very easily pre-define these interfaces, which the individual script is required to implement. You could then use the scripting API's merely to get an implementation of that interface, and then pass it off to other parts of your application for execution. The rest of the app would have no idea it's dealing with a script.
So in this respect, you could very easily have a mixture of compiled implementations and scripted implementations of your interface.
It's a quite powerful approach. |