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

Expand AboutLoopsAndPipelines to cover edge cases / misunderstandings #404

Open
vexx32 opened this issue Jul 12, 2020 · 2 comments · May be fixed by #473
Open

Expand AboutLoopsAndPipelines to cover edge cases / misunderstandings #404

vexx32 opened this issue Jul 12, 2020 · 2 comments · May be fixed by #473
Labels
Category-Koans Invoking the Great Doubt Issue-Enhancement 🎉 Make it better! Issue-Suggestion This should be added! Up For Grabs / Hacktoberfest 💻 If it's Up For Grabs, take it and run with it! If not, ask if it's in progress / you can take it.

Comments

@vexx32
Copy link
Owner

vexx32 commented Jul 12, 2020

Describe "Koan(s) You Suggest"

There's sometimes a bit of a blurry line between loops and pipelines in PowerShell; we can expand the existing koans in AboutLoopsAndPipelines to cover some common misconceptions.

Context "The Scope of the Koans You Suggest"

  • foreach keyword v.s. foreach alias usage
  • break/continue behaviour in loops and the highly dangerous behaviour when used in a pipeline
  • clarify the function of return in pipeline contexts and how they can be used to break out of a loop early, but not pipelines.

Context "Additional Information"

https://twitter.com/JustinWGrote/status/1282385547671924736?s=20

@vexx32 vexx32 added Issue-Suggestion This should be added! Category-Koans Invoking the Great Doubt Issue-Enhancement 🎉 Make it better! Up For Grabs / Hacktoberfest 💻 If it's Up For Grabs, take it and run with it! If not, ask if it's in progress / you can take it. labels Jul 12, 2020
@vexx32
Copy link
Owner Author

vexx32 commented Jul 12, 2020

@PalmEmanuel
Copy link

I'd like to take a look at this one! :)

PalmEmanuel pushed a commit to PalmEmanuel/PSKoans that referenced this issue Oct 5, 2022
@PalmEmanuel PalmEmanuel linked a pull request Oct 5, 2022 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category-Koans Invoking the Great Doubt Issue-Enhancement 🎉 Make it better! Issue-Suggestion This should be added! Up For Grabs / Hacktoberfest 💻 If it's Up For Grabs, take it and run with it! If not, ask if it's in progress / you can take it.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants