Skip to content

Multi line function calls #41

@chmac

Description

@chmac

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions