Feature #9402
A syntax to specify the default value of a hash
Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
Description
I propose the following syntax to specify the default value of a hash:
h = { => 0, :a => 1, :b => 2 } h[:a] # => 1 h[:c] # => 0
No data to display