Hacker News new | ask | show | jobs
by biot 3742 days ago
How did hashrocket get named? I would think instead of => a hashrocket would look like: #>

edit: Makes total sense. Thanks for the replies.

2 comments

Ruby's associative arrays are called hashes. That operator is how you assign a value to a key.
I understand that it is the rocket shaped operator used in making hashes.

{:cats => "foo"}