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

Step method to return the yield call returned data? #163

Open
josselinauguste opened this issue May 30, 2013 · 2 comments
Open

Step method to return the yield call returned data? #163

josselinauguste opened this issue May 30, 2013 · 2 comments

Comments

@josselinauguste
Copy link

Would it be possible that the step method returns the data returned by the yield call? It would make the calling code cleaner when the block don't just modify objects, but also returns data.

It seems quite straightforward to fix in the codebase, but i'm not sure of the potential consequences of such a behavioral change.

@dixon
Copy link
Collaborator

dixon commented May 30, 2013

I assume this is not for the .NET implementation?

@josselinauguste
Copy link
Author

Indeed it applies to the ruby implementation

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

No branches or pull requests

2 participants