-
Notifications
You must be signed in to change notification settings - Fork 154
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
Store length instead of endOffset in Java and Ruby objects #939
Conversation
This is ready for review/merge. |
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.
Just one question, but otherwise looks good
lib/yarp.rb
Outdated
end | ||
|
||
def deconstruct_keys(keys) | ||
{ start_offset: start_offset, end_offset: end_offset } | ||
{ start_offset: start_offset, end_offset: end_offset } # TODO |
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.
What's the TODO here?
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.
I was wondering if we should change the deconstruct_keys
to include length
instead of end_offset
.
But it doesn't seem so useful and things like pretty_print
should still show the end_offset as that seems more readable, and would be noisy to change.
I'll just remove it, I can try it later and see whether that makes sense.
daf5a17
to
f7b7bc5
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.
Looks great
For #872