Depends what you mean by "reasonable" I'm guessing. Manually encoding a semantic analysis would have a very high overhead, and you might be able to do it via dependent types instead (not sure though, they tend to hurt my brain when I try to actually understand them), but I don't think they're considered practical (yet).
Just because you can, doesn't mean you should. :-)
Forcing a and b to be different types could cause a different problem - maybe a worse one, depending on how many subtractions your code requires.
It's maybe not very realistic, but you'd have trouble with this approach if you were trying to code the distance function `(a, b) \mapsto |a - b|` in a language that didn't have an absolute value.
Of course, that would upset Joel on account of not knowing what - did without knowing the types.