Skip to content
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

Simplify Range<T> usage and implementation, switching to half-open (end is exclusive) #3965

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

YoshiRulz
Copy link
Member

@YoshiRulz YoshiRulz commented Jul 10, 2024

WIP, but the next part will be much harder, so if you want to review and merge don't wait for me.

After merge, need to remember to update https://github.com/TASEmulators/BizHawk/wiki/Available-C%23-and-.NET-features

@Morilli
Copy link
Collaborator

Morilli commented Jul 10, 2024

What's the WIP part about this? Could this just be merged as is or is something missing?

@YoshiRulz
Copy link
Member Author

YoshiRulz commented Jul 10, 2024

It could be merged as-is. (It might be a good idea to have a unit test, at least before the refactor from closed to half-open, since that one changes some logic.) The part that's missing is to make Int32Interval half-open. It may also be possible to make them value types, in which case some or all uses of Int32Interval could be the BCL Range instead.

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.

2 participants