airbnb / ruby

Ruby Style Guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for 2.1 Syntax

justin808 opened this issue · comments

Should the style guide mention:

  1. Named parameters
  2. Using the { key: value } rather than the { :key => value } syntax

I think it should be mentioned.

Thanks for the suggestions.

Re named parameters: We are still using Ruby 1.9.3, so this is not relevant for us. We will update the style guide when we migrate to Ruby 2.x.

Re hash syntax: See my comment in #20.

Good opportunity for a fork for those using Ruby 2.1 (and having a different opinion on the { a: "1" } style vs the { :a => "1" } style.