From: Aaron Patterson Date: 2013-02-14T09:31:51+09:00 Subject: [ruby-core:52235] Re: [ruby-trunk - Feature #7839][Open] Symbol.freeze_symbols On Wed, Feb 13, 2013 at 10:08:28AM +0900, Eric Wong wrote: > "tenderlovemaking (Aaron Patterson)" wrote: > > I'd like to be able to call a method like `Symbol.freeze_symbols` > > which would essentially freeze the symbol hash, such that if any new > > symbols are created, an exception would be thrown. > > How about the option to do a soft freeze which issues a warning instead > of exception? (but support both). Start using soft freeze, and move to > a real freeze later when apps/gems are fixed. Even having a warning would be nice! -- Aaron Patterson http://tenderlovemaking.com/