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

Warning "use let instead" if a single clause when is found #307

Closed
Tracked by #191
rvcas opened this issue Jan 22, 2023 · 2 comments · Fixed by #308
Closed
Tracked by #191

Warning "use let instead" if a single clause when is found #307

rvcas opened this issue Jan 22, 2023 · 2 comments · Fixed by #308
Assignees
Milestone

Comments

@rvcas
Copy link
Member

rvcas commented Jan 22, 2023

No description provided.

@rvcas rvcas mentioned this issue Jan 22, 2023
27 tasks
@rvcas rvcas self-assigned this Jan 22, 2023
@micahkendall
Copy link
Member

make when sugar syntax for if let, then this can be an automatic expansion of if let where it isn't useful.

@rvcas
Copy link
Member Author

rvcas commented Jan 24, 2023

we can also do that but it should still be a warning cause let is "better style" in this case.

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

Successfully merging a pull request may close this issue.

2 participants