4 ms·
> it's a literal This is the situation I was explicitly excluding from my original comment. I was talking about runtime input, which is by far the more common
by smt88 4y ago
> it's a literal
This is the situation I was explicitly excluding from my original comment. I was talking about runtime input, which is by far the more common use-case for numbers in code.
A smart compiler will just optimize operations on literals into their result at compile time anyway.
- dllthomas 4y agoI think that makes your original comment non-sequitur? Haskell does not allow Integer * Double (or even Integer * Int32), but it does allow `2 * 3.14`, and you seemed to be saying that what Haskell does is somehow dangerously weakly typed.