dart-lang / dart-lang/language

Allow n suffix for BigInt to match JavaScript

Open
#372 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
TeX
Stars
2.9k
Forks
239
Avg merge
2d 18h
Merged PRs (30d)
14

Description

Would allow you to write
```dart
final biggie = 9007199254740991n;
```

instead of
```dart
final biggie = BigInt.from(9007199254740991);
```

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.