Re:Why Dart Types Are Optional and Unsound
by ot on Thursday January 05, 2012 @09:39PM
(#3431681)
As far as I understand this means that no precondition can be encoded in the variable type. A function with a Pig argument can still cause a NoSuchMethodException exception because the argument can actually hold a Cow instance.
[ Parent
| on HN ]
You still have a precondition encoded in the parameter type. It's just a precondition for the programmer to see and understand, rather than one for the machine to rigorously enforce.