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

inconsistent range notation #37

Open
Seasawher opened this issue Jun 14, 2024 · 2 comments
Open

inconsistent range notation #37

Seasawher opened this issue Jun 14, 2024 · 2 comments

Comments

@Seasawher
Copy link
Contributor

Std.range (for example [1:5]) does not include right edge.

but notation [-k:k] in Float^[[-k:k]] does include right edge, because which is defined as ICC.

I thought this is misleading notation.

@lecopivo
Copy link
Owner

Yeah I know, any idea how to improve the notation? Would you prefer Float^[[-k:k+1]]? In math, you would write [-k,k] for Icc or [-k,k) for Ico.

Maybe not include this notation at all and you have to write Float^[Icc -k k]

@Seasawher
Copy link
Contributor Author

how about [-k ≤ · ≤ k]?

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

No branches or pull requests

2 participants