Skip to content

Update documentation to cover constructor tearoffs #46243

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 3, 2021 · 5 comments
Closed

Update documentation to cover constructor tearoffs #46243

eernstg opened this issue Jun 3, 2021 · 5 comments
Assignees
Labels
area-documentation Prefer using 'type-documentation' and a specific area label.

Comments

@eernstg
Copy link
Member

eernstg commented Jun 3, 2021

This issue tracks support of the constructor tearoffs feature. See the enclosing meta-issue for details.

@eernstg eernstg added the area-documentation Prefer using 'type-documentation' and a specific area label. label Jun 3, 2021
@devoncarew
Copy link
Member

cc @kwalrath

@leafpetersen
Copy link
Member

Does this cover any effective dart work required? cc @munificent

@jacob314
Copy link
Member

jacob314 commented Sep 3, 2021

It would align well with lints if effective dart explained why you should get used to always using tearoffs when they have the same result.
E.g.
Never write:
foo.forEach((e) => print(e))
when you can write
for.forEach(print)
for all kinds of tearoffs.

@munificent
Copy link
Member

I think we will want to reword the guideline around tear-offs a little since the current wording is limited to methods. Filed dart-lang/site-www#3560 to track.

@devoncarew
Copy link
Member

pinging this issue; @kwalrath, we expect to have the feature complete for the branch at the start of Nov., and shipping in the Dec release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-documentation Prefer using 'type-documentation' and a specific area label.
Projects
None yet
Development

No branches or pull requests

6 participants