From: Phillip Gawlowski Date: 2011-07-04T01:59:58+09:00 Subject: Re: symbol vs string for hash keys On Sun, Jul 3, 2011 at 6:33 PM, Chad Perrin wrote: > > Basically, if it is more important to be able to operate on the names of > your hash keys, strings are appropriate; if performance is more > important, or you are sure no such operation on the names will be > necessary, symbols are appropriate. And, of course, you can convert to and from symbols/strings. Beware the spaces, though: >> "a space".to_sym => :"a space" >> :"a space".to_s => "a space" >> :symbolic_snake.to_s => "symbolic_snake" -- Phillip Gawlowski twitter.com/phgaw phgaw.posterous.com A method of solution is perfect if we can forsee from the start, and even prove, that following that method we shall attain our aim.                -- Leibniz