-
Notifications
You must be signed in to change notification settings - Fork 204
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
Hash Literals with a space #26
Comments
One argument against having spaces is that they clearly distinguish hashes from blocks. |
Yes after a couple weeks of doing this I came to immediately appreciate this distinction. Did not expect to
… On Nov 21, 2018, at 00:57, Odin Dutton ***@***.***> wrote:
On argument against the space is that clearly distinguishes hashes from blocks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I very much use the "space for blocks, no space for hashes rule" and would like to see it be part of standard. |
The yea's have it. Thanks for raising this, though, @david-pm! |
Closed
Closed
In ruby 3 docs class Hash we have h = {foo: 0, bar: 1, baz: 2} while in ruby 2 docs class Hash we had options = { font_size: 10, font_family: "Arial" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First off, this library is a great idea!
Now for the complaints:
I just can't live with:
{bar: "baz"}
. Just look at it. I know Rails is not the gospel or anything but it is probably Ruby's most read codebase, and I only see hash literals with the space in there.The text was updated successfully, but these errors were encountered: