| 1. |
What Is Strong-typing Versus Weak-typing? Which Is Preferred? Why? |
|
Answer» Strong typing IMPLIES that the types of variables involved in operations are ASSOCIATED to the variable, checked at compile-time, and require explicit conversion; weak typing implies that they are associated to the VALUE, checked at run-time, and are implicitly converted as required. (Which is PREFERRED is a disputable point, but I personally PREFER strong typing because I like my errors to be found as soon as possible.) Strong typing implies that the types of variables involved in operations are associated to the variable, checked at compile-time, and require explicit conversion; weak typing implies that they are associated to the value, checked at run-time, and are implicitly converted as required. (Which is preferred is a disputable point, but I personally prefer strong typing because I like my errors to be found as soon as possible.) |
|