> The moral of this story is: If you can't or won't declare every single > variable, don't do loops. They are likely to be a losing proposition.
I don't think this lesson will serve most people well. It doesn't reflect my experiences using Julia at all. My experience is that code that requires variable type declarations usually suffers from a deeper problem that the variable declarations suppress without solving: either (a) there's some insoluble source of ambiguity in the program (as occurs when calling a function that's passed around as a value and therefore not amenable to static analysis) or (b) there's some subtle source of type instability, as happens sometimes when mixing integers and floating point numbers. -- John