-
Notifications
You must be signed in to change notification settings - Fork 13
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
Implement some->
macro
#87
Conversation
You're assuming that
So you should refer to
"un-even" is better written "odd". A test of short-circuiting should check that no side-effects occur of forms that are supposed to be skipped. I typically do this by trying to append to a list and then checking that the list is still empty. The intended property of |
Thanks for the feedback. BTW. Do you think it would make sense to extract the processing of a form (use of |
I'm not sure. You could try it and see if the result is neater. Subroutines of macros are generally better written as functions than macros, though. |
From https://clojuredocs.org/clojure.core/some-%3E (emphasis mine)
BTW. There is the following test, which I have extended a bit (commit 9b30918)
|
Feedback tasks
|
Originally I created What if we get rid of
|
IMHO, this is better done with mocking, please see commit ec9317e. |
Still seems overcomplicated to me. See my new commit. Otherwise, looks good. I guess I misunderstood how |
And don't forget to add yourself to AUTHORS. |
Done via commit 57b33cb. Anything else to correct, let me know please. Otherwise, for summary, please see #87 (comment). |
57b33cb
to
0e8b54d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably i shouldn't have permission to do this
Good point. That should be fixed now. |
@Kodiologist @scauligi i have asked my friend to approve as it seems the settings are wide open. i suspect this is not intended? |
Yes, I was under the impression that GitHub actually didn't let you restrict reviewing privileges, but now, at least, it does. |
Thread `head` first through the `rest` of the forms, but short-circuit if a form returns `None`.
0e8b54d
to
579aeed
Compare
Thread
head
first through therest
of the forms, but short-circuit if a form returnsNone
.This is an attempt to progress with #5 ticket.