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

Dealing with C-style questions #17

Open
mrgenixus opened this issue Feb 24, 2014 · 3 comments
Open

Dealing with C-style questions #17

mrgenixus opened this issue Feb 24, 2014 · 3 comments

Comments

@mrgenixus
Copy link

  • Do I add a space after the function signature before the brace?
  • Should single-line if's be eschewed
@justinabrahms
Copy link
Contributor

My preference and what the majority of the code is:

myfunc(function (x) {
  do(x);
});

var myfunc = function (cb) {
  theCode(goesHere);
}

function namedFunc(cb) {
  moar(code);
}

@wookiehangover
Copy link

IIRC there's a setting in jshint that can enforce that style

@justinabrahms
Copy link
Contributor

I looked and didn't see one?

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

No branches or pull requests

3 participants