{"action":"closed","issue":{"url":"https://api.github.com/repos/feross/standard/issues/311","labels_url":"https://api.github.com/repos/feross/standard/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/feross/standard/issues/311/comments","events_url":"https://api.github.com/repos/feross/standard/issues/311/events","html_url":"https://github.com/feross/standard/issues/311","id":114167377,"number":311,"title":"Nobody write a space after function name","user":{"login":"tkrotoff","id":643434,"avatar_url":"https://avatars.githubusercontent.com/u/643434?v=3","gravatar_id":"","url":"https://api.github.com/users/tkrotoff","html_url":"https://github.com/tkrotoff","followers_url":"https://api.github.com/users/tkrotoff/followers","following_url":"https://api.github.com/users/tkrotoff/following{/other_user}","gists_url":"https://api.github.com/users/tkrotoff/gists{/gist_id}","starred_url":"https://api.github.com/users/tkrotoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkrotoff/subscriptions","organizations_url":"https://api.github.com/users/tkrotoff/orgs","repos_url":"https://api.github.com/users/tkrotoff/repos","events_url":"https://api.github.com/users/tkrotoff/events{/privacy}","received_events_url":"https://api.github.com/users/tkrotoff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-29T23:20:59Z","updated_at":"2015-10-30T01:49:56Z","closed_at":"2015-10-30T01:49:56Z","body":"You recommend to write `function name (arg) { ... }` instead of `function name(arg) { ... }`.\r\n\r\nIt seems you are the only one among the JavaScript style guides (*) to recommend that:\r\n\r\n- [Airbnb (25,827 stars btw)](https://github.com/airbnb/javascript#functions)\r\n- [Google](https://google.github.io/styleguide/javascriptguide.xml?showone=Method_and_property_definitions#Method_and_property_definitions)\r\n- [Mozilla](https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#JavaScript_objects)\r\n- [idiomatic.js](https://github.com/rwaldron/idiomatic.js#spacing)\r\n- [Crockford](http://javascript.crockford.com/code.html#function)\r\n- [jQuery](https://contribute.jquery.org/style-guide/js/#comments)\r\n- ...\r\n\r\nConsequence, you also recommend to write:\r\n```TypeScript\r\nclass Foo {\r\n  name (arg) {\r\n    ...\r\n  }\r\n}\r\n```\r\ninstead of\r\n```TypeScript\r\nclass Foo {\r\n  name(arg) {\r\n    ...\r\n  }\r\n}\r\n```\r\n\r\nNone of the popular programming languages out there do that:\r\n- [Java](http://www.oracle.com/technetwork/java/javase/documentation/codeconventions-141270.html#381)\r\n- [PHP](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md)\r\n- [Python](https://www.python.org/dev/peps/pep-0008/)\r\n- [Ruby](https://github.com/bbatsov/ruby-style-guide)\r\n- [C#](https://msdn.microsoft.com/en-us/library/ff926074.aspx)\r\n- [C++](http://www.stroustrup.com/bs_faq2.html#simple-program)\r\n- [C](https://en.wikipedia.org/wiki/Indent_style#K.26R_style)\r\n- [TypeScript](http://www.typescriptlang.org/Handbook#functions)\r\n- [Scala](http://docs.scala-lang.org/style/types.html#functions)\r\n- [Rust](http://rustbyexample.com/hello.html)\r\n- [Swift](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Functions.html)\r\n- [Go](https://github.com/golang/example/blob/master/hello/hello.go)\r\n- ...\r\n\r\nAnd last, statistics show that most people ([67%](http://sideeffect.kr/popularconvention/#javascript)) don't write a space after function in JavaScript.\r\n\r\nRelated issues: #89, #164, #217\r\n\r\n(*) listed on [Google first page](https://www.google.com/search?q=JavaScript+style+guide)"}}