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

ECMAScript 6 and Block Scope #406

Open
gothburz opened this issue Jul 6, 2015 · 7 comments
Open

ECMAScript 6 and Block Scope #406

gothburz opened this issue Jul 6, 2015 · 7 comments

Comments

@gothburz
Copy link

gothburz commented Jul 6, 2015

Add block scope to let & const bullet under ECMAScript 6 Styles section or give it its own overview and link.

@nischayv
Copy link
Contributor

nischayv commented Nov 2, 2016

Seems like this is already covered in 2.3. Am I wrong?

@ljharb
Copy link
Collaborator

ljharb commented Nov 2, 2016

Somewhat, but this issue is looking for a more in-depth section to be added to https://github.com/airbnb/javascript#ecmascript-6-es-2015-styles

@nischayv
Copy link
Contributor

nischayv commented Nov 3, 2016

I was thinking of adding additional examples like using let in loops under 2.3 itself and referencing it in the es6 list. Does that sound good?

@ljharb
Copy link
Collaborator

ljharb commented Nov 3, 2016

I guess that could work, but I don't feel like "references" is really the best place for the actual meat of the content.

@nischayv
Copy link
Contributor

nischayv commented Nov 3, 2016

That's true. But it seemed to somewhat cover a few concepts already. But I can create a new section entirely for block scope and have stuff like shadowing variables, loops, etc. Would that work?

@ljharb
Copy link
Collaborator

ljharb commented Nov 3, 2016

Hmm - that might be better, but I'm hesitant to rashly do a big reorg of parts of the guide. If you don't mind the possibly thrown away work, I'd love to review a PR - otherwise I'll think on it more first.

@nischayv
Copy link
Contributor

nischayv commented Nov 3, 2016

Sounds good!

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

No branches or pull requests

3 participants