From: dblack@... Date: 2007-05-18T03:17:01+09:00 Subject: Re: Why was the "Symbol is a String"-idea dropped? Hi -- On Fri, 18 May 2007, Gary Wright wrote: > On May 16, 2007, at 11:17 AM, Logan Capaldo wrote: >> On 5/16/07, dblack@wobblini.net wrote: >>> With symbols being as integer-like as they are string-like, though, >>> it's really equally similar to: >>> >>> 2 == :"2" >>> >> I don't think symbols are integer like. > > This is the 'equivalence is defined by identity' idea again. I think > this is what David means by 'integer-like'. It is this property that > both fixnums and symbols share but that is *not* shared by strings. Yes, it's the immutable/immediate thing that symbols have in common with fixnums and that neither has in common with strings. David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)