Sign in to follow this  
asterix12

Why so much verification in scriptin

Recommended Posts

Most scripting languages are quite dynamic. Variables and functions are created on the fly at runtime. It becomes far more difficult to do static analysis of basic errors like those available to more structured languages.

A lot of checks (variables existing, function argument existance and type matching) that would be caught in a separate compile pass need to be checked at run time in most scripting languages.

This is the price you pay for rapid development and using higher level features in the scripting language.

Share this post


Link to post
Share on other sites
Assuming that everything will go according to plan in programing can be quite risky especially in dynamic envorionement.

Like rip-off said, scripting languages allows a lot of flexiblity especially at run time, therefore you should not assume but you should check.

In short better be safe than sorry.
It's common good pratice, of course you're free to not do it ^^

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this