-
Notifications
You must be signed in to change notification settings - Fork 39
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
internal: remove sons from leaf nodes empty/none #392
internal: remove sons from leaf nodes empty/none #392
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.
Left a small suggestion.
As an aside, I think it'd make future tracking down of changes (e.g. via git blame
) easier if the refactorings unrelated to the main topic of the PR (single-line statements to multi-line, for it in n
instead of for i in 0..<n.len
, etc) are done in a separate PR. I don't consider this to be a blocker however.
e40ddb4
to
1c5f79c
Compare
- pulls nkEmpty and nkNone into a branch without sons - various small fixes to get bootstrap working - no tests failed, so that's a good{?} sign
1c5f79c
to
0f14ce0
Compare
Bots r+ |
if father.len == 0: | ||
return | ||
for i in idx..<father.len - 1: | ||
father[i] = father[i + 1] |
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.
Preexisting, but that if check is unneccessary, as the loop body will not execute if father.len
is zero.
bors r+ |
392: internal: remove sons from leaf nodes empty/none r=saem a=saem ## Summary - pulls nkEmpty and nkNone into a branch without sons - ensures more correctness by design ## Details - various small fixes to get bootstrap working - no tests failed, so that's a good{?} sign Co-authored-by: Saem Ghani <saemghani+github@gmail.com>
Timed out. |
Bots r+ |
bors r+ |
Build succeeded: |
Summary
Details