Skip to content

misleading syntax difference between performing math with big integers and small integers. #9460

Answered by HaloFour
YV99king asked this question in General
Discussion options

You must be logged in to vote

Maybe, but it was an intentional design choice and one that was made probably 25 years ago. So at this point the behavior cannot be changed. The language team thought that it was more important to avoid accidental overflow on uncommon integral types than it was to achieve syntactic consistency.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@stephentoub
Comment options

@HaloFour
Comment options

@YV99king
Comment options

@HaloFour
Comment options

Answer selected by YV99king
Comment options

You must be logged in to vote
1 reply
@jnm2
Comment options

jnm2 Jun 17, 2025
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #9459 on June 17, 2025 20:23.