Re: Hash suprise

From: matz@... (Yukihiro Matsumoto)
Date: 2002-10-09 08:07:28 UTC
List: ruby-core #535
Hi,

In message "Hash suprise"
    on 02/10/09, Torsten Rer <torsten.rueger@firsthop.com> writes:

|I was trying to modify hash keys (strings) yesterday, and found to my 
|surprise that they are frozen. Why ?

1. You shouldn't modify hash key in place.

2. String used as hash keys most often, so detecting a bad syle is
   useful.

							matz.

In This Thread

Prev Next