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
The declaration
const x = [ 1, 2, 3, 4, 5 ];
automatically deduces the upper bound of x but mandates a lower bound of 0
It would be useful if the following syntax (or something like it using a legal range) was legal:
const x : [0..] int = [ 1, 2, 3, 4, 5];
This would then allow declarations like
const x : [1..] int = [ 1, 2, 3, 4, 5]; const edge : [-1..] = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0 ];
for those of us who work with arrays that are not always 0-based, especially those who port old code from other languages.
Not urgent. Not critical. No temporary workaround needed. Thanks.
The text was updated successfully, but these errors were encountered:
Closing this - #10596 covers this,
Sorry, something went wrong.
No branches or pull requests
The declaration
automatically deduces the upper bound of x but mandates a lower bound of 0
It would be useful if the following syntax (or something like it using a legal range) was legal:
This would then allow declarations like
for those of us who work with arrays that are not always 0-based, especially those who port old code from other languages.
Not urgent. Not critical. No temporary workaround needed. Thanks.
The text was updated successfully, but these errors were encountered: