From: Jim Weirich Date: 2005-03-17T11:08:59+09:00 Subject: Re: Symbol vs String On Wednesday 16 March 2005 03:37 pm, Sebesty�n G�bor wrote: > Just a dumb question: what is the real difference between { :aKey => > "aValue" } and { "aKey" => "aValue" } ? I know the first key is a > symbol the latter is a string. I like string keys why should I use > symbols? Why symbols worth to use as keys? Use Strings for their content. Use Symbols for their arbitrary uniqueness. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)