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

Multi line function calls #41

Open
chmac opened this issue Jun 11, 2015 · 1 comment
Open

Multi line function calls #41

chmac opened this issue Jun 11, 2015 · 1 comment

Comments

@chmac
Copy link

chmac commented Jun 11, 2015

I found your coffeescript styleguide looking for advice on multiline function calls, but I don't see this topic covered in the guide. Any advice on which of the following is more idiomatic?

aLongFunctionName firstLongArgumentName, secondLongArgument,
thirdArgumentIsAnObject: 'bar'
aLongFunctionName firstLongArgumentName, secondLongArgument,
  thirdArgumentIsAnObject: 'bar'

Also, while we're at it, when creating objects, which of these is more idiomatic?

foo:
  bar: 'baz
foo: bar: 'baz

Thanks for your work on the style guide, it's extremely useful to have a standard.

@linus-amg
Copy link

👍

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

No branches or pull requests

2 participants