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

Code style: always-parens for arrow functions #4814

Closed
wants to merge 2 commits into from

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Jan 22, 2016

Continuing on from here. While single-argument arrow functions allow you to drop parens, it doesn't mean you should. Personally I find these too terse and make code harder to visually parse. I know I'm not alone on this but I'm happy to hear from others who feel strongly about dropping parens in this case.

Note our codebase isn't consistent on this, there's lots of single-arg arrow functions with parens already.

/cc @nodejs/collaborators cause of the impact

@jasnell
Copy link
Member

jasnell commented Jan 22, 2016

I'm good with this. LGTM

@rvagg
Copy link
Member Author

rvagg commented Jan 22, 2016

derp, closing in favour of #4813 by @cjihrig

@mscdex mscdex added the tools Issues and PRs related to the tools directory. label Jan 22, 2016
@targos targos closed this Jan 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants