From: Rodrigo Rosenfeld Rosas Date: 2013-02-06T23:51:07+09:00 Subject: [ruby-core:51920] Re: [ruby-trunk - Feature #7792] Make symbols and strings the same thing Em 06-02-2013 12:36, Yorick Peterse escreveu: > You don't need to hijack any code for it, you'd just use it as > following: > > require 'hashie' > > parsed = JSON.parse('{"name": "Ruby"}') > hash = Hashie::Mash.new(parsed) > > hash.name # => "Ruby" > hash['name'] # => "Ruby" > hash[:name] # => "Ruby" > > We use Hashie in various production applications and it works quite well > for us. > So you get a performance hit because you don't want to worry about symbols while symbols are meant to give you better performance, right? How ironic is that?