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
  
        
          
          Updated by hsbt (Hiroshi SHIBATA) almost 4 years ago
          
          
        
        
      
      - Project changed from 14 to Ruby
 
Actions