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

_Range[T] shouldn't return T? for begin and end #1494

Open
sampersand opened this issue Sep 4, 2023 · 0 comments
Open

_Range[T] shouldn't return T? for begin and end #1494

sampersand opened this issue Sep 4, 2023 · 0 comments

Comments

@sampersand
Copy link
Contributor

The interface _Range[T] currently returns T? for begin and end. This precludes ranges which require both a beginning and an end (eg used in Kernel#rand).

The solution is to make begin and end return T, and convert all current uses of _Range[T] to _Range[T?]. (There aren't any uses of _Range[T] currently—definitions that use it are currently in-flight and haven't been merged yet)

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

No branches or pull requests

1 participant