On Sep 8, 8:49 pm, Robert Walker <[email protected]> wrote: > Philip Hallstrom wrote: > > As it goes with many things in life there are trade-offs, and finding > the right balance is often complex. There is overhead in constantly > creating and destroying objects, but keeping them around consumes > memory. Also keep in mind that symbols are stored internally as > integers, hence making comparisons significantly more efficient than > comparing strings.
Another reason why they make good hash keys. There is a good post on symbols at http://blog.hasmanythrough.com/2008/4/19/symbols-are-not-pretty-strings Fred > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

