Skip to content

Nobody write a space after function name #311

Description

@tkrotoff

You recommend to write function name (arg) { ... } instead of function name(arg) { ... }.

It seems you are the only one among the JavaScript style guides (*) to recommend that:

Consequence, you also recommend to write:

class Foo {
  name (arg) {
    ...
  }
}

instead of

class Foo {
  name(arg) {
    ...
  }
}

None of the popular programming languages out there do that:

And last, statistics show that most people (67%) don't write a space after function in JavaScript.

Related issues: #89, #164, #217

(*) listed on Google first page

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions