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

`each` instead of `forEach` #613

Closed
zwhitchcox opened this Issue Jun 17, 2016 · 6 comments

Comments

Projects
None yet
3 participants
@zwhitchcox

zwhitchcox commented Jun 17, 2016

I'm not sure what the exact process is, but I hereby propose we create an alias, each for forEach.

This falls in line with the nomenclature of iterative Array prototype functions in javascript, e.g., every, some, filter, reduce, etc., of having one word to describe the loop. It creates cleaner code, is more precise, and just looks better. It's also a pain to have to write forEach rather than each, and, frankly, the other languages are laughing at us about this.

So, let's write some cleaner code with with each instead of forEach!

@domenic

This comment has been minimized.

Show comment
Hide comment
@domenic

domenic Jun 17, 2016

Member

See https://github.com/tc39/ecma262/blob/master/CONTRIBUTING.md, which was linked in a big yellow warning at the top when you created this issue.

Member

domenic commented Jun 17, 2016

See https://github.com/tc39/ecma262/blob/master/CONTRIBUTING.md, which was linked in a big yellow warning at the top when you created this issue.

@domenic domenic closed this Jun 17, 2016

@zwhitchcox

This comment has been minimized.

Show comment
Hide comment
@zwhitchcox

zwhitchcox Jun 17, 2016

Umm, no it wasn't, but ok

zwhitchcox commented Jun 17, 2016

Umm, no it wasn't, but ok

@domenic

This comment has been minimized.

Show comment
Hide comment
@domenic
Member

domenic commented Jun 17, 2016

screenshot from 2016-06-17 12 57 06

@zwhitchcox

This comment has been minimized.

Show comment
Hide comment
@zwhitchcox

zwhitchcox Jun 17, 2016

Well, I didn't see it. And anyway, there's no link to submit a new proposal on that site.

zwhitchcox commented Jun 17, 2016

Well, I didn't see it. And anyway, there's no link to submit a new proposal on that site.

@Lysande

This comment has been minimized.

Show comment
Hide comment
@Lysande

Lysande Jun 17, 2016

@zwhitchcox yes, there is:
"Feature requests for future versions of ECMAScript should not be made in this repository. To make a feature request, post to the es-discuss mailing list."

"If you have a new proposal you want to get into the language, you first need a TC39 champion. Head to es-discuss to find one."

Lysande commented Jun 17, 2016

@zwhitchcox yes, there is:
"Feature requests for future versions of ECMAScript should not be made in this repository. To make a feature request, post to the es-discuss mailing list."

"If you have a new proposal you want to get into the language, you first need a TC39 champion. Head to es-discuss to find one."

@zwhitchcox

This comment has been minimized.

Show comment
Hide comment
@zwhitchcox

zwhitchcox Jun 17, 2016

Ok, thank you, I have initiated the process to get that done.

zwhitchcox commented Jun 17, 2016

Ok, thank you, I have initiated the process to get that done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment