3 ms·
> Technically the compiler technically did nothing wrong I don't know a single language where integers are "promoted" to floats when they get large; certainly
by ben-schaaf 4y ago
> Technically the compiler technically did nothing wrong
I don't know a single language where integers are "promoted" to floats when they get large; certainly no statically typed language. You could argue JavaScript does this, but it's neither compiled nor does it actually have integers. So yes, if a compiler did that it would be a bug.