4 ms·
"int" doesn't really make sense from a mathematical perspective, since ints in e.g. C are a finite set that is not closed under addition or multiplication. So
by umanwizard 7y ago
"int" doesn't really make sense from a mathematical perspective, since ints in e.g. C are a finite set that is not closed under addition or multiplication.
So I think it's actually a good example of your broader point, that the meaning of English words as programming keywords is often very different from their meaning in other contexts.
- ajross 7y ago> finite set that is not closed under The discussion was about programming languages and English. What on earth is this about? You're actually compounding the issue here, by invoking jargon from a different field. That's true of the definition of integers you'll find in college level math textbooks, but the word "integer" as understood by normal people (even computer programmers) means "whole number", which is why the type is named that way.
- umanwizard 7y agoMy point was that 10^1000000000 is a valid integer according to the high school (or college) definition, but not in most implementations of c++.