3 ms·
For most tasks we can restrict ourselves to a terminating subset without bottom. See Agda, Coq, Isabelle, etc.
by eru 11y ago
For most tasks we can restrict ourselves to a terminating subset without bottom. See Agda, Coq, Isabelle, etc.
- eli_gottlieb 11y agoBingo. But most people also like to kvetch and moan about the restrictions imposed by programming with only structural recursion and productive corecursion -- even though those are usually exactly what we want.
- eru 11y agoEspecially if you get an easy way out for when you need it. Like unsafePerformIO, but for calling not-proven-to-be-terminating functions. Or an explicit marker like the wrapping monads for side-effecting functions.
- dragonwriter 11y ago> For most tasks we can restrict ourselves to a terminating subset without bottom. See Agda, Coq, Isabelle, etc. While those are interesting languages, I kind of was under the impression that they were generally not seen as suitable for "most tasks".
- eru 11y agoI mean, even in Haskell, big chunks of every program can be automatically recognized as `safe Haskell'.