Actions
Feature #9686
openSyntax for symbols used in hashes
Feature #9686:
Syntax for symbols used in hashes
Status:
Open
Assignee:
-
Target version:
-
Description
Symbols are often used literally as keys in hashes like this:
But acutally there is a little inconvenience when using the alternative :"name" literal syntax:
It would be great if Ruby provided the possibility to write the second example like this:
This would be logical, because you can write both syntaxes the same way when not using them in hashes.
Actions