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

Advise against non-yield solutions #2336

Merged
merged 1 commit into from
Mar 26, 2024
Merged

Conversation

Gautzilla
Copy link
Contributor

@Gautzilla Gautzilla commented Mar 26, 2024

As the Accumulate method is supposed to be lazy, the mentors should advise against solutions that don't use the yield keyword.

I added a statement that might help mentors guide students towards a solution that uses the yield keyword.

I left the comment about the yield keyword in the Common suggestions section, as it applies in the case where a student would have manually written a custom iterator.

This PR follow this discussion on the forum with @ErikSchierboom

As the Accumulate method is supposed to be lazy, the mentors should advise against solutions that don't use the yield keyword
@github-actions github-actions bot added track/csharp C# track type/mentor-notes Mentor notes labels Mar 26, 2024
@ErikSchierboom ErikSchierboom merged commit 0b2154f into exercism:main Mar 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants