Re:Dependently Typed Programming
by tel on Tuesday July 01, 2014 @09:32PM
(#7974587)
Either tends to be used for error conditions that arise from the outside—after all, you are (a) explicitly denoting them and (b) presumably handling them. Programmer errors tend to arise in invariant violations. Sometimes these are marked with `error "cannot occur"` or silly things like that. Dropping into a debugger here would be tremendous.
[ Parent
| on HN ]
A simple, standard equivalent of __FILE__ and __LINE__ would be 60% as useful as a debugger.