10 ms·
Yes and no. The definitions are in the type system, but the checks are done at runtime, just like you would do manually. You don't really get the benefit of typ
by mcguire 6y ago
Yes and no. The definitions are in the type system, but the checks are done at runtime, just like you would do manually. You don't really get the benefit of typing.
The reason I can say that: you don't have to provide proofs that a value has to be positive to get things to compile.
- eru 6y agoChecks at runtime are also a good idea, but yes, very different from static dependent types. There's some interesting work on making such contracts work well in a lazy language with higher-order functions.