Skip to content
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

Document performance/trade-offs of generator functions #6005

Open
feinstein opened this issue Jul 30, 2024 · 2 comments
Open

Document performance/trade-offs of generator functions #6005

feinstein opened this issue Jul 30, 2024 · 2 comments
Labels
e1-hours Can complete in < 8 hours of normal, not dedicated, work p2-medium Necessary but not urgent concern. Resolve when possible.

Comments

@feinstein
Copy link

The Flutter Style Guide discourages the use of generator functions, citing there's runtime overhead.

I wish this behaviour and trade-offs were documented somewhere.

Also, should the List/Iterable tutorials have a link to the generator docs?

@RedBrogdon
Copy link
Collaborator

Thanks for filing an issue, @feinstein. This does feel like something that would fit into the generators section in the function documentation:

https://dart.dev/language/functions#generators

Also, should the List/Iterable tutorials have a link to the generator docs?

Do you mind sharing a link for the tutorials you're referring to?

@RedBrogdon RedBrogdon added e1-hours Can complete in < 8 hours of normal, not dedicated, work p2-medium Necessary but not urgent concern. Resolve when possible. labels Jul 31, 2024
@RedBrogdon RedBrogdon changed the title [PAGE ISSUE]: 'Functions' Document performance/trade-offs of generator functions Jul 31, 2024
@feinstein
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e1-hours Can complete in < 8 hours of normal, not dedicated, work p2-medium Necessary but not urgent concern. Resolve when possible.
Projects
None yet
Development

No branches or pull requests

2 participants