We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Current issues with collections.Range that hurt its usability:
collections.Range
negative Ranges (where min > max) is only expressable for signed integers:
min > max
// this is not possible, as the inc parameter is also U8 Range[U8](10, 0, -1)
The default inc should only be 1 if min <= max, otherwise it should be -1 to ensure that we iterate into the expected direction:
inc
1
min <= max
-1
// this should infer a default step of -1 Range[U8](10, 0) // this should infer a default step of 1 Range[U64](0, 10)
The text was updated successfully, but these errors were encountered:
Solved by ponylang/ponyc#2350
Sorry, something went wrong.
Thanks @EpicEric!
No branches or pull requests
Current issues with
collections.Range
that hurt its usability:negative Ranges (where
min > max
) is only expressable for signed integers:The default
inc
should only be1
ifmin <= max
, otherwise it should be-1
to ensure that we iterate into the expected direction:The text was updated successfully, but these errors were encountered: