Skip to content

Allow n suffix for BigInt to match JavaScript #372

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

Open
mnordine opened this issue May 23, 2019 · 1 comment
Open

Allow n suffix for BigInt to match JavaScript #372

mnordine opened this issue May 23, 2019 · 1 comment

Comments

@mnordine
Copy link
Contributor

Would allow you to write

final biggie = 9007199254740991n;

instead of

final biggie = BigInt.from(9007199254740991);

See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt

@kevmoo kevmoo transferred this issue from dart-lang/sdk May 23, 2019
@kevmoo
Copy link
Member

kevmoo commented May 23, 2019

Great idea! In a similar spirit to #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants