-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Editorial: Correct usage of 'Let'/'Set' in various algorithms #2365
Conversation
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.
While it’s not incorrect to reuse variable names like this, it does seem clearer to me to in-line the condition for the early returns.
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.
LGTM other than existing comments.
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.
lgtm2 with existing comments resolved
883c39c
to
254191d
Compare
@ljharb Applied your suggestions |
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.
LGTM, thanks
Thanks @h2oche! Can I ask, are you using some automated tooling to find these, or just checking manually? |
254191d
to
a12b4d4
Compare
Hello, @bakkot. |
There are some algorithms where same variable is defined twice :
Plus, for notation consistency, it might be better to remove variables named
hasXX
in 8.2.