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

Clear up possible confusion #28

Closed

Conversation

jackdempsey
Copy link
Contributor

As someone new to clojure, the reuse of x made me think that was somehow necessary. Tried it out and realized that of course was silly. So, this small change might help others see it more clearly.

@jackdempsey
Copy link
Contributor Author

Sigh. I'd --amend that commit and fix my own typo of "their"...but alas, too late.

@ghost
Copy link

ghost commented Oct 15, 2010

You're just changing x to i here and using it in more than one place. I'm not sure this really clears up any confusion. Is there a different or more detailed way to show this?

@jackdempsey
Copy link
Contributor Author

The issue for me was using x a few lines before and binding to x again later. I wasn't sure if it needed to be x again for some reason, or could be a more common variable for holding an integer, say i. Does that make sense? I'm not sure I can come up with a more appropriate variable than i, but I do think it's more useful than repeating x.

@abedra
Copy link
Contributor

abedra commented Oct 15, 2010

Ok, i'll buy that for min-1. I can see how that could possibly be confusing. There is no need for the change to min-2. Can you resubmit a patch that just addresses min-1?

@jackdempsey
Copy link
Contributor Author

Not trying to be pedantic, but doesn't it make sense to keep the change in there for min-2? I would wonder why the change back to using x for min-2, and if the "x & more" needed to be repeated, or just as well could have been i again.

I realize it's a tiny detail but with the concept of things not changing in Clojure and bindings to vars as important as they are, I do think it's worth debating and appreciate the time you're giving to it!

@abedra
Copy link
Contributor

abedra commented Oct 15, 2010

Ok, i've pulled this in. Thanks.

@jackdempsey
Copy link
Contributor Author

Thanks Aaron! Buy you a beer next time you're in SF :-)

This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants