When (not) static typing matters
On the other hand if you have a language like Clojure, with some basic types like vector,set,map, few other primitive types and "function type" (and if you don't create new types with deftype etc) then dynamic typing is preferable, because you know what all the function will be dealing with these types only and that info can be encoded as meta data on the functions itself (or comments if you don't have meta data facility in your language).
In end I would say if you create a lot of new types, then static typing is good and if you use some basic set of types (which are enough to represent any info/model) then dynamic typing is the way to do. So rather than discussing which is better, we should focus on which path we want to take while programming.
Let me know if this make sense for you guys.
Thanks.
1 comment
[ 6.1 ms ] story [ 16.2 ms ] threadhttp://www.python.org/dev/peps/pep-3107/