airbnb/ruby — pull request #22 by horaceko (2013-09-05 20:26:52+00:00)
Title: Curly braces should not have spaces around them

From the style guide:

* Use spaces around operators; after commas, colons, and semicolons; **and around `{` and before `}`**.

One of these things is *not* like the others.

To me, `{` and `}` are closer in function to `(`, `[`, `)`, and `]` than commas, colons, and semicolons. As such, I don't feel that we should treat them differently in terms of whitespace padding around those symbols. Here's what I think the docs *should* say:

* Use spaces around operators; after commas, colons, and semicolons.
* No spaces after `(`, `[`, `{` or before `}`, `]`, `)`.

Isn't that so much more consistent?

/cc @allenkerr and anyone else who may want to jump in on this inevitable nerd fight.