-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define int.MIN_SAFE and int.MAX_SAFE #455
Comments
This comment was originally written by drfibonacci@google.com Added Area-Language, Triaged labels. |
Removed Area-Language label. |
We ran into a somewhat related issue porting a graph / shortest path algorithm to Dart. It's convenient to use something like MAX_INT as an initial value (essentially representing infinity) for iterative algorithms. |
The Dart integer type does not have a max or min value. Added WontFix label. |
Changes: ``` > git log --format="%C(auto) %h %s" 32a9450..87e4c68 https://dart.googlesource.com/markdown.git/+/87e4c68 Bump to 6.0.1 (#462) https://dart.googlesource.com/markdown.git/+/37305cf Add deprecated accessors for indicatorForUncheckedCheckBox and indicatorForCheckedCheckBox (#459) https://dart.googlesource.com/markdown.git/+/2e5e347 lint cleanup (#456) https://dart.googlesource.com/markdown.git/+/a0b5a05 example: small tweak to example – add Dart code (#455) https://dart.googlesource.com/markdown.git/+/de32a69 visitText to use textContent getter so subclassing Text class works correctly. (#431) https://dart.googlesource.com/markdown.git/+/8247955 Rewrite checkbox(task list) extension (#450) https://dart.googlesource.com/markdown.git/+/a602760 Fix crash with mixed checkbox lists (#449) ``` Diff: https://dart.googlesource.com/markdown.git/+/32a94505ded3863b82310b86344a003a19c00341~..87e4c689342d5bbaa84ba2999abf0bff503979be/ Change-Id: I92cf05fe6057e1b3eda8da09fc4eac4f67dd47ab Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260441 Reviewed-by: Samuel Rawlins <srawlins@google.com> Auto-Submit: Devon Carew <devoncarew@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>
This issue was originally filed by kresten...@gmail.com
It would be good to have constants defining the "safe integer range", i.e. the range of integers that can be expected to be precise in both DartVM and when compiled to JavaScript: -2^53 ... (2^53)-1
The text was updated successfully, but these errors were encountered: