Skip to content

Docs for for…from#4368

Merged
GeoffreyBooth merged 2 commits into
jashkenas:masterfrom
GeoffreyBooth:for-from-docs
Nov 22, 2016
Merged

Docs for for…from#4368
GeoffreyBooth merged 2 commits into
jashkenas:masterfrom
GeoffreyBooth:for-from-docs

Conversation

@GeoffreyBooth

@GeoffreyBooth GeoffreyBooth commented Nov 20, 2016

Copy link
Copy Markdown
Collaborator

Documentation for #4355. This adds documentation for the new for…from syntax. I put it in the Bound and Generator Functions section, with a link from the Loops section. I’m open to persuasion that it should go the other way around.

I also added a note that the CoffeeScript compiler does not, in fact, output JavaScript that can run in every JavaScript runtime. It’s a sad day, I know. But really we should’ve added this note when we added support for generators, and certainly for modules.

@GeoffreyBooth GeoffreyBooth merged commit 56482a3 into jashkenas:master Nov 22, 2016
@lydell lydell deleted the for-from-docs branch November 22, 2016 17:50
EsrefDurna pushed a commit to EsrefDurna/coffeescript that referenced this pull request Nov 12, 2025
* Documentation of `for...from` for iterating over generator functions

* Add note that the CoffeeScript compiler does not, in fact, generate JavaScript that runs in every JavaScript runtime 😢
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

Successfully merging this pull request may close these issues.

2 participants