4 ms·
I'm not familiar with Haskell.. how is the static typing used in the second example?
by darkstalker 14y ago
I'm not familiar with Haskell.. how is the static typing used in the second example?
- Raphael_Amiard 14y agoHindley-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.