Re:Haskell, Monads and Purity
by dllthomas on Saturday October 04, 2014 @10:41AM
(#8409588)
You can get rid of divide by zero without anything sophisticated. The key is that you cannot expose normal division. There are two reasonable solutions:
Both of these come at a cost, of course, of making some arithmetic expressions look less natural - which dependent types could probably help with.
[ Parent
| on HN ]
There are no comments on this comment yet.