Skip to content

Implement augmentations #56101

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

Closed
eernstg opened this issue Jun 28, 2024 · 12 comments
Closed

Implement augmentations #56101

eernstg opened this issue Jun 28, 2024 · 12 comments
Labels
area-meta Cross-cutting, high-level issues (for tracking many other implementation issues, ...). triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. type-enhancement A request for a change that isn't a bug

Comments

@eernstg
Copy link
Member

eernstg commented Jun 28, 2024

This issue tracks the implementation of the augmentations feature.

Update: Closing this issue. Please see #56150 which has been created to be the implementation issue for augmentations. It contains links to all the subtasks. Also: Please use #56150 rather than this issue in language test failure approvals.

@eernstg eernstg added the implementation Track the implementation of a specific feature (use on area-meta issue, not issues for each tool) label Jun 28, 2024
@eernstg
Copy link
Member Author

eernstg commented Jun 28, 2024

@itsjustkevin, this implementation issue is needed because some work is ongoing in order to implement augmentations, and there's a need to have an issue number when approving tests that aren't yet working. Do you have a well-established way to generate all the subtasks?

@dart-github-bot
Copy link
Collaborator

Summary: This issue proposes adding a new feature called "augmentations" to the Dart language. The goal is to implement this feature and make it available to users.

@dart-github-bot dart-github-bot added area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. type-enhancement A request for a change that isn't a bug labels Jun 28, 2024
@eernstg eernstg added area-meta Cross-cutting, high-level issues (for tracking many other implementation issues, ...). and removed area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). labels Jun 28, 2024
@itsjustkevin
Copy link
Contributor

Sorry @eernstg been a bit out of the loop. I previously used https://github.com/itsjustkevin/flutter_release_scripts/blob/main/languageFeatures.js which is now broken and needs to be rewritten as a Dart CLI as I have been adding more and more scripts.

Will manually add these features and update the script when I have some time.

Will the feature name be: Augment, Augmentations...?

@eernstg
Copy link
Member Author

eernstg commented Jul 1, 2024

Hi @itsjustkevin, thanks for looking into this!

The feature is currently covered by --enable-experiment=macros, but at least some members of tool teams want to split the experiment flags such that augmentations can be handled separately.

@johnniwinther, @srawlins, WDYT? Should we use --enable-experiment=augmentations for augmentations, and macros for macros? Presumably, the latter will imply the former.

It sounds like the scheduling is good because we can choose the experiment flag and the broken script issue in parallel, and then proceed when everybody is ready. ;-)

@sgrekhov, would this approach fit in with the management of experiment flags in co19 tests about augmentations?

@sgrekhov
Copy link
Contributor

sgrekhov commented Jul 1, 2024

Yes. I support the idea of having separate flags for the each feature. No problem for me to update the flags.

@itsjustkevin
Copy link
Contributor

@eernstg with the response from @sgrekhov, have we decided to split out the experimental flags? Once this is confirmed, I will build the associated issue list.

@eernstg
Copy link
Member Author

eernstg commented Jul 5, 2024

I think everybody wants separate flags.

@johnniwinther, did you already create the augmentation related flag in some ongoing CL, or did I get that wrong?

@johnniwinther
Copy link
Member

I haven't created any flags. I'd also like for the "enhanced parts" to have its own flag FWIW.

@eernstg
Copy link
Member Author

eernstg commented Jul 8, 2024

And "enhanced parts" would be the name of the feature that generalizes part files to support imports? We could have this:

  • 'macros' (already in use)
  • 'augmentations' (plural, as is rather common for these flag names)
  • 'enhanced-parts' (prior art: 'enhanced-enums')

The addition of the required information in $SDK/tools/experimental_features.yaml is done by a rather broad group of people, but it often seems to be a person who is doing some implementation in the area.

@johnniwinther, WDYT? I think we might as well just add them as soon as possible.

@johnniwinther
Copy link
Member

SGTM

@eernstg
Copy link
Member Author

eernstg commented Jul 9, 2024

@eernstg eernstg removed the implementation Track the implementation of a specific feature (use on area-meta issue, not issues for each tool) label Jul 9, 2024
@eernstg
Copy link
Member Author

eernstg commented Jul 9, 2024

I can see that #56101 has been created to be the implementation issue for augmentations, so I'll close this issue.

@eernstg eernstg closed this as completed Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-meta Cross-cutting, high-level issues (for tracking many other implementation issues, ...). triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

5 participants