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

Relax bound checking behavior on collection slicing #795

Open
nelson-wu opened this issue Oct 15, 2019 · 1 comment

Comments

@nelson-wu
Copy link

@nelson-wu nelson-wu commented Oct 15, 2019

This suggestion is for relaxing bound checking on collection slicing, so any slice that extends past collection boundaries will be snapped to the bounds. Any invalid slice will return empty collection instead of throwing errors.

Detailed design, pros and cons, and implementation details at https://github.com/nelson-wu/fslang-design/blob/3690b10ebaddda40614d51143f0651e863ccbc2f/RFCs/FS-1077-tolerant-slicing.md

@cartermp

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.