Skip to content

Hash rocket vs 1.9 Syntax #92

@chancancode

Description

@chancancode

Hi all,

Tiffany from LA Railsbridge mentioned that there were some confusion among the students about the inconsistent use of hash rocket (i.e. {:a => 123, :b => "hello"}) vs 1.9 syntax (i.e. {a: 123, b: "hello"}). I can probably send a PR to unify them, but I want to get some feedback on which of these two options do people prefer:

  1. Use hash rocket everywhere, maybe add a note about the 1.9 syntax ( Pros: consistent, easy to understand )
  2. Use 1.9 syntax whenever possible ( Pros: this seems to be where the Ruby community is heading, and tutorials and code they read elsewhere will probably be using this style )

Godfrey

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions