Re:Dependent Types for F#
by mjn on Tuesday December 05, 2017 @04:03PM
(#15855942)
Some Lisp implementations (like SBCL) also do that blending, although they can statically catch some integer range violations too. For example if you declare a variable to be an (integer 50 100) and try to assign a literal 30 to it, you'll get a compile-time warning in SBCL:
But in many other cases it'll generate a runtime check instead, because the static type checking is basically best-effort.
[ Parent
| on HN ]
There are no comments on this comment yet.