3 ms·
I think integer size promotion would only make it worse. I do agree that "as" should have range checking. Some of it can be done statically (e.g. converting t
by aidenn0 11y ago
I think integer size promotion would only make it worse.
I do agree that "as" should have range checking. Some of it can be done statically (e.g. converting to a strictly larger type, and when the range of possible values are known) and the rest can be done with minimal overhead if they emit the code right.
- pcwalton 11y agoIt's not minimal overhead in many cases. Think about vectorization, for example.