In article <200101031934.EAA27072 / hanare00.math.sci.hokudai.ac.jp>, GOTO Kentaro <gotoken / math.sci.hokudai.ac.jp> wrote: ... >A number of users was confused by these behavior, thus we have already >proposed an alternative constructor [ruby-list:26622] like this: > > a = Hash.new { |hash_self, unknown_key| > hash_self[unknown_key] = "" > } > > a[1] << "a" > p a # {1 => "a"} > >I believe this feature will be adopted in the near future ;-) > Thank you very much! I answered Hugh before seeing your answer, but this addresses all my complaints. It would be wonderful if you also add a similar alternative constructor for Array. Best regards, Jean MICHEL