Skip to content

Conversation

@AndreasArvidsson
Copy link
Member

By utilizing interior scope in relative scope modifier we can skip the interior of scopes. See new test.

@AndreasArvidsson AndreasArvidsson requested a review from a team as a code owner December 13, 2025 14:13
@AndreasArvidsson
Copy link
Member Author

@pokey Mind having a look at this?

pokey
pokey previously approved these changes Dec 14, 2025
Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard to say whether this will be nice or annoying in practice. I think worth shipping to find out

@AndreasArvidsson
Copy link
Member Author

@pokey Please have another look now.

@pokey
Copy link
Member

pokey commented Dec 16, 2025

Ok I made some tweaks. I expanded the comment with an example, and then tweaked the range exclusion: I think we should exclude the target ranges rather than the domain. Wdyt?

@AndreasArvidsson
Copy link
Member Author

AndreasArvidsson commented Dec 16, 2025

I like your changes. The only thing still on my mind is if we really want to use itertools. At most ifilter can remove a single scope. I think for readability reasons we should probably just go back to normal array operations.

edit: The more I think about it the more I think using itertools is just a premature optimization. I'm leaning towards readability here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants