Hashes and symbols


#1



Replace this line with your code.

Hello people can someone please explain why the mentioned same strings with same symbol differs while running the code?


#2

@darerock,
a SYMBOL is an =immutable object= ( an Object that cannot be changed !!! )
With a google search
== discussions / opinions ==
ruby object_id explained site:stackoverflow.com
for instance
http://stackoverflow.com/questions/2341837/understanding-symbols-in-ruby

What you should know.....
The symbol-object is an object which causes a lot of confusion,even among experienced RUBY programmers.... ( a bit fuzzy )


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.