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.28k stars 1.58k forks source link

[Enum Shorthands] Experiment flag #57037

Open kallentu opened 2 weeks ago

kallentu commented 2 weeks ago

Add an experiment flag to Dart and put all implementation code under it.

The implementation issue for a potential new language feature being considered: https://github.com/dart-lang/language/issues/357

Checklist for experiment flag

dart-github-bot commented 2 weeks ago

Summary: This issue proposes adding an experiment flag to Dart for enum shorthands, a potential new language feature. The flag would allow developers to opt-in to the feature and provide a mechanism for gradual rollout and testing.