Re:Clojure vs. The Static Typing World
by wellpast on Sunday October 29, 2017 @11:06AM
(#15579568)
I made it up.
[ Parent
| on HN ]
And what does 55.1 % 102 produce? 1e-12 % 3i+12?
And if your answer is "I only need it to work on integers" then don't blame Haskell when I choose to specialise it to Int!
I'm a bad product manager. The % should round the value to a tenth and then concat.
This is a silly example, of course, but the real world isn't short on creativity/silliness.
And for complex numbers?
Precondition: complex numbers are not supported. Unspecified behavior.