Re:OCaml 4.03: Everything else
by catnaroek on Wednesday March 02, 2016 @09:55AM
(#11210249)
The real benefit of using a strict-by-default language is that laziness shows up in types. That is, I can check the type of a variable, and tell whether it's guaranteed to be a value (if it has type `Foo`), or it's a potentially still unforced thunk (if it has type `Lazy Foo`). For instance, the real type of lazy lists would be:
Haskell doesn't do this, not even with the Strict or StrictData pragmas.
[ Parent
| on HN ]
There are no comments on this comment yet.