exercism / website-copy

A repository for exercism's website's copy
203 stars 950 forks source link

Advise against non-yield solutions #2336

Closed Gautzilla closed 5 months ago

Gautzilla commented 5 months ago

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