Content deleted Content added
m Reverted edits by 61.17.178.189 (talk) to last version by Drbrain |
Change of Hash keys from strings to symbols by KMeyer (Jul 1) |
||
Line 127:
I believe this citation should be removed until a proper reference can be found. --[[User:Drbrain|drbrain]] 22:16, 18 June 2006 (UTC)
== Change of Hash keys from strings to symbols by KMeyer (Jul 1) ==
KMeyer made some changes on July 1st to the hash examples. Rather than, say, { 'a' => 'b', 'c' => 'd' }.. it has become { :a => 'b', :c => 'd' } .. While the symbol syntax is now becoming more popular, I feel this is a poor demonstration of hash tables generally since readers may be confused as to why, say { :my string here => 'x' } doesn't work. Symbols have a prescribed purpose, and in a general hash table, they are not necessarily usable as keys. --[[User:Coop|Coop]] 14:27, 2 July 2006 (UTC)
|