Thursday, February 11, 2010

What is strong-typing versus weak-typing? Which is preferred? Why?

Strong-typing vs Weak-typing

Strong type is checking the types of variables at compile time. Weak typing is checking the types of the system at run-time.

For scripts we will use weak typing.

In big programs,we will use strong typing which can reduce errors at compile time

No comments: