|
|
|
|
|
by tialaramex
734 days ago
|
|
> integer based division is preferred in all languages What does this even mean? First of all, several languages have distinct "integer divison" and "floating point division" operators, so there's no sense in which integer is "preferred" in those languages, they're unrelated operations. Even allowing for your ignorance of such languages many modern languages do not have untyped constants, they're an attractive nuisance. If you don't have untyped constants then even if you're relying on implicit typing for constants (which I also don't like) you trip a mistake in the original expression anyway which is now unalike. This mistake only occurs in a language with all of: 1. A single division operator despite two distinct operations 2. Untyped constants 3. "Promotion" so that type mismatches just do something unexpected and compile anyway. |
|