dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.04k stars 1.55k forks source link

Tracking issue for platform specific integer literals #33282

Open leafpetersen opened 6 years ago

leafpetersen commented 6 years ago

This is the meta-issue for platform specific integer literals. See https://github.com/dart-lang/sdk/issues/33160 for background discussion.

The decided upon course of action is here: https://github.com/dart-lang/sdk/issues/33160#issuecomment-392910496 (also summarized below).

TODO: Step 1: (For Dart 2 release):

Step 2: (Post Dart 2):

leafpetersen commented 6 years ago

More details, copied over from https://github.com/dart-lang/sdk/issues/33160#issuecomment-392910496 .

Step 1 - In the Dart 2 timeframe:

Step 2 - In the post Dart 2 timeframe:

An implication of all of this is that we have (more) platform specific errors and warnings. In the short term, these will only be surfaced by the compilers. The analyzer/IDE may or may not choose to offer a way to select a platform for additional errors and warnings.

Implementation implications:

Step 1:

Step 2:

leafpetersen commented 6 years ago

cc @lrhn

dgrove commented 6 years ago

Because this will not be complete for Dart2Stable, dropping the milestone (all sub-issues needed for Dart2Stable are marked for the Dart2Stable milestone)

srawlins commented 6 years ago

There should be a step to announce this breaking change as well.