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 CAVEAT EMPTOR regarding infinite gather #3133

Open
dumarchie opened this issue Dec 27, 2019 · 1 comment
Open

Add CAVEAT EMPTOR regarding infinite gather #3133

dumarchie opened this issue Dec 27, 2019 · 1 comment
Labels
docs Documentation issue (primary issue type) RFE Request for enhancement. Try to use alternative wording that explain the concept more clearly trap

Comments

@dumarchie
Copy link
Collaborator

The problem

In Rakudo the Seq returned by gather take is not declared lazy by design. If such a Seq is (almost) infinite it will misbehave if not wrapped in a lazy.

Suggestions

Add a CAVEAT EMPTOR to the documentation of gather take that an (almost) infinite gather SHOULD be prefixed by lazy.

@JJ JJ added RFE Request for enhancement. Try to use alternative wording that explain the concept more clearly docs Documentation issue (primary issue type) trap labels Dec 27, 2019
@JJ
Copy link
Contributor

JJ commented Dec 27, 2019

Maybe we'll document it as a trap. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation issue (primary issue type) RFE Request for enhancement. Try to use alternative wording that explain the concept more clearly trap
Projects
None yet
Development

No branches or pull requests

2 participants