Actions
Feature #9402
openA syntax to specify the default value of a hash
    Feature #9402:
    A syntax to specify the default value of a hash
  
Status:
Open
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
  
Actions