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 both the refutable and irrefutable syntax for each pattern type #6226

Open
MaryaBelanger opened this issue Nov 20, 2024 · 0 comments
Assignees
Labels
e1-hours Can complete in < 8 hours of normal, not dedicated, work p2-medium Necessary but not urgent concern. Resolve when possible.

Comments

@MaryaBelanger
Copy link
Contributor

"... the documentation of the different kinds of patterns uses the refutable syntax for some of them, and the irrefutable syntax for others. I wonder whether it would be better to just bite the bullet and document both syntaxes for each pattern type? It would also help drive home the fact that there are two syntaxes. Example here: https://dart.dev/language/pattern-types#rest-element"

"...the docs silently go back and forth between using the irrefutable syntax (no var) and the refutable syntax."

@MaryaBelanger MaryaBelanger self-assigned this Nov 20, 2024
@MaryaBelanger MaryaBelanger added p2-medium Necessary but not urgent concern. Resolve when possible. e1-hours Can complete in < 8 hours of normal, not dedicated, work labels Nov 22, 2024
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

1 participant