What's the difference between :foo => :bar
and foo: :bar
?
Are there circumstances where I should be using one over the other?
What are the advantages/disadvantages?
EDIT: In defense of this not being a dup.
The question/answer linked to by the mods does not:
- Comment on the conventionality of using either style which I feel is a important factor in deciding to use one over the other.
- Address that in my question the values are symbols.
- Which versions of Ruby started using the new style