Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add TODOs to rename pos() and ipos()
Element::pos() and Element::ipos() unclear and error prone semantic led to 382b7d7. SpannerSegment::pos2() and SpannerSegment::ipos2() are not good as well. I didn't apply renaming because active work is in progress.
- Loading branch information
1 parent
9037e5e
commit 588a4ba
Showing
2 changed files
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
588a4ba
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.
pos() is much more often used than ipos(). Therefore i suggest to change the semantic of _pos:
588a4ba
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.
Sounds good. These changes need a lot of renaming and accurate changing the code, but it will make code clearer.