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

Drop the list methods? #3

Open
tabatkins opened this issue Apr 23, 2024 · 0 comments
Open

Drop the list methods? #3

tabatkins opened this issue Apr 23, 2024 · 0 comments

Comments

@tabatkins
Copy link
Collaborator

All of the list methods can be done inline as Array.from({length: n}, ()=>Random.foo(a,b)). In general, the committee appears to favor just making "make an array of Xs" something that authors can write themselves, instead of adding built-ins for it.

This also means we need list variants of every random method, or else justify why some get one and others don't. For example, currently if you want a list of random selections from an array, you have to write code like my example above; we don't provide a way to ask for an array of N selections.

I think we should just drop the list variants.

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

1 participant