-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
DeclinedThe issue was declined as something which matches the TypeScript visionThe issue was declined as something which matches the TypeScript visionSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
In JavaScript, you can write out a really really big (non-bigint
) integer literal and get a completely different value.
0x6A09E667F3BCC908n == 0x6A09E667F3BCC908n // true
0x6A09E667F3BCC908n == 0x6A09E667F3BCC908 // false!?
It's worth asking whether or not a really really big integer values which have different observed and specified values are erroneous, and whether we can give users an error.
This would be a breaking change, but it's not clear who benefits from the current behavior.
See tc39/proposal-bigint#170 for where this came up (CC @littledan)
JoshuaKGoldberg
Metadata
Metadata
Assignees
Labels
DeclinedThe issue was declined as something which matches the TypeScript visionThe issue was declined as something which matches the TypeScript visionSuggestionAn idea for TypeScriptAn idea for TypeScript