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

Expose maximum array length #170

Open
ppolesiuk opened this issue Dec 20, 2024 · 0 comments
Open

Expose maximum array length #170

ppolesiuk opened this issue Dec 20, 2024 · 0 comments
Labels
good first issue Good for newcomers stdlib Work on standard library

Comments

@ppolesiuk
Copy link
Member

In a discussion @ppolesiuk suggested that we could take an approach similar to OCaml and expose the maximum array length for when the programmer requires this kind of assurance. I think this is reasonable, given that oversized allocations are uncommon and recovery from out of memory situations is rarely needed/desirable (at least for such a high level language). However, perhaps we still want to check the size somewhere, to display a custom error instead of OCaml's.

Originally posted by @forell in #126 (comment)

@ppolesiuk ppolesiuk added good first issue Good for newcomers stdlib Work on standard library labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers stdlib Work on standard library
Projects
None yet
Development

No branches or pull requests

1 participant