-
Notifications
You must be signed in to change notification settings - Fork 165
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
Delete And(Proc, ...) and introduce ForEach(Proc, ...) #1226
Comments
@victornoel This bug shows us that |
@yegor256 What do you think about this? How about leaving |
@paulodamaso I believe |
@victornoel I'm talking about an declarative way of iterating through the collection, just like |
@paulodamaso I understand, here is my thinking:
So the only thing we can do is introduce a Why not, but is it really necessary? |
@victornoel With this, we could remove the side effect from |
@paulodamaso by "with this", do you mean "introducing If yes I think it's answering the original needs in this ticket, I can update the description if you want. |
@victornoel Yes, I think that we should implement something like you proposed |
@paulodamaso I've updated the description |
@victornoel Thank you |
@0crat in |
@paulodamaso Job #1226 is now in scope, role is |
Bug was reported, see §29: +15 point(s) just awarded to @victornoel/z |
@paulodamaso yes, I agree, let's create |
@paulodamaso but I think it should just be a wrapper for |
@yegor256 but do we agree we should still remove the |
@victornoel yes, I agree to remove |
@0crat in |
@paulodamaso Job #1226 is already in scope |
The architect of the project has changed; @paulodamaso/z is not at this role anymore; @victornoel/z is the architect now |
@ryoku thank you for the PR |
Job |
The
And
class has a constructor taking aProc
and behaving in:true
you can get an unexpected behaviour thinking you are getting theProc
one while you get theScalar
oneThis makes bugs happens, such as #1212.
I think we should:
ForEach(Proc, Iterable)
that implementsProc
if one wants to execute something on all elements of anIterable
.See also #1215 (comment) for a discussion on this.
The text was updated successfully, but these errors were encountered: