-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
Switch to debruijn indices, genericize sub/lub/glb #18837
Switch to debruijn indices, genericize sub/lub/glb #18837
Conversation
6302c59
to
8a7f4a5
Compare
@pnkfelix I realized I meant to write some more tests for specialized scenarios. I'll try to do that this morning. But |
8a7f4a5
to
f903048
Compare
f903048
to
3d2189b
Compare
OK, done writing some more tests and comments. I'm sure I could write more still but good enough for now perhaps. Did find one bug by writing unit tests so huzzah for proper engineering practices. :) |
* | ||
* Let's start with the reference type `&'b int` that is the first | ||
* argument to the inner function. This region `'b` is assigned a De | ||
* Bruin index of 1, meaning "the innermost binder" (in this case, a |
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.
Bruijn
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.
Bruijn
Thanks! and I was being so careful to always spell it right :)
r=me after addressing the remaining typos pointed out by @tomjakubowski (and potentially addressing my minor feedback). |
I'll incorporate the feedback into the main HRTB PR. I've fixed a bunch of random bugs that I found in that branch and it'll be hard to sort out the history if we land this. |
More refactoring in support of HRTB. There should be no change in functionality from these changes.
r? @pnkfelix