Khalid Ali
07-13-2003, 07:19 AM
I am not sure if anybody out there has the same problem as I do with JavaScripts loose type declarations for variables/objects.
I wish soon they have variable decalrations something like this
var n<Integer or int> = 7;
var dec<float or double> = 3.3;
var flag<boolean or bool or Boolean> = false;
var name<String> = "Bob";
I am pretty sure it will improve performance a great deal because the JS engine will not have to figure the heck out that which <type> the variable is of.
phew...Just wanted to get it out...;)
I wish soon they have variable decalrations something like this
var n<Integer or int> = 7;
var dec<float or double> = 3.3;
var flag<boolean or bool or Boolean> = false;
var name<String> = "Bob";
I am pretty sure it will improve performance a great deal because the JS engine will not have to figure the heck out that which <type> the variable is of.
phew...Just wanted to get it out...;)