Re:What can I do with dynamic typing that I can not do with ...
by darkstalker on Friday October 05, 2012 @09:49AM
(#4616830)
I'm not familiar with Haskell.. how is the static typing used in the second example?
[ Parent
| on HN ]
Re:What can I do with dynamic typing that I can not do with ...
by Raphael_Amiard on Friday October 05, 2012 @09:54AM
(#4616857)
Hindley-Milner like type systems can deduce the type of vars from how they are used. In the square example, using the "*" operation give the information to the type system that x is a number.