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

Add wildcard variables #6295

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add wildcard variables #6295

wants to merge 3 commits into from

Conversation

MaryaBelanger
Copy link
Contributor

@MaryaBelanger MaryaBelanger commented Dec 30, 2024

@dart-github-bot
Copy link
Collaborator

dart-github-bot commented Dec 30, 2024

Visit the preview URL for this PR (updated for commit 9f1d115):

https://dart-dev--pr6295-wildcards-g5s9r6dj.web.app

@MaryaBelanger MaryaBelanger marked this pull request as ready for review January 2, 2025 20:01
@MaryaBelanger MaryaBelanger requested a review from kallentu January 2, 2025 20:02
Copy link
Member

@kallentu kallentu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thank you for writing this up.

}
```

* For loop varibale declartaion.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Typo in "variable declaration".

@@ -291,6 +291,60 @@ For more information on using `const` to create constant values, see
[Lists][], [Maps][], and [Classes][].


## Wildcard variables
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not even fully sure what we do or don't put in docs, so excuse me if this is a dumb question haha, but how do we expose related lints to these features?

For example, Phil recently submitted the unnecessary_underscores lint that turns __ into _ (wildcard variable) and it would be great for people to use it.
Do you expose it in other ways (that aren't in this documentation)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Wildcard Variables feature to the Language docs
3 participants