M
Matt Baker
Guest
Why not cut it down even more to what other languages are doing. Specificaly python, javascript, java, C# and probably others. var myobj = new Someclass(). var myint = 3. var mystr = "somestring". var something = myobj:GetSomething(). The compiler detects the resulting data type of the expression for the right side of the assignment and use that as the type of the variable from that point on in the code forward. No need for the extra "variable" and "as someclass". In addition, if "GetSomething()" is modified to return something else, I don't have to rewrite my variable definition.
Continue reading...
Continue reading...