generated from tc39/template-for-proposals
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: