2010-08-29, 04:07 AM
Fiel Wrote:Problems with dynamic languages in general:
In larger projects, you need to know the type of the variable you're using, especially if it's a method that depends on a certain object entering it. So the language being dynamic really doesn't give me any flexibility as reassigning types doesn't do any good within the scope of the method. So instead I have to name a variable in such a way that its association with an object or primitive is obvious. These days I tend to program Python like Java/C# due to this problem.
Well, that's not an issue with dynamic languages. That's an issue with typedeclaration. LISP and ActionScript are e.g. dynamic languages, and usually don't typedeclare variables. However, it is possible to do in order to optimize speed, or what you describe.

