Replies: 2 comments 1 reply
-
Another interesting solution is the |
Beta Was this translation helpful? Give feedback.
-
It reminds me that, google protobuf's dart/flutter implementation uses
If web support is added, it sounds pretty acceptable to bump the major version. Indeed we may also create a reddit post or something like that to let people know it (especially people who originally came and left b/c they wanted web).
For "internal" I guess it is not a problem whether to use 32bit or 64bit, and this is not a breaking change - since it is used internally and users should not use them.
Agree it is "highly unsound" and dangerous ;) So in short, I like the fixnum approach (and google protobuf also uses it). |
Beta Was this translation helpful? Give feedback.
-
An interesting tidbit I came across while implementing glue code for wasm_bindgen is that it translates integer types larger than 32 bits to be
BigInt
, with no way to opt out AFAIK. This makes sense more on the web as DartJS integers are limited in their representations (from -2^53 + 1 to 2^53 - 1). So there are two (+1) ways this can go:Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions