From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 8DD7917CDC65 for ; Thu, 7 Feb 2013 00:09:46 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (smtp.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 6CAE9EA6EA2 for ; Wed, 6 Feb 2013 23:53:03 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 3DED697A820 for ; Wed, 6 Feb 2013 23:53:03 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f1WG6GHpeMKy for ; Wed, 6 Feb 2013 23:53:03 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 1AECC97A827 for ; Wed, 6 Feb 2013 23:53:03 +0900 (JST) Received: from carbon.ruby-lang.org (carbon.ruby-lang.org [221.186.184.68]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 364FC952408 for ; Wed, 6 Feb 2013 23:53:00 +0900 (JST) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [127.0.0.1]) by carbon.ruby-lang.org (Postfix) with ESMTP id 967203C1C95BC; Wed, 6 Feb 2013 23:51:07 +0900 (JST) Received: from mail-gh0-f175.google.com (mail-gh0-f175.google.com [209.85.160.175]) by carbon.ruby-lang.org (Postfix) with ESMTP id 743A03C1C95CE for ; Wed, 6 Feb 2013 23:48:44 +0900 (JST) Received: by mail-gh0-f175.google.com with SMTP id g18so358935ghb.20 for ; Wed, 06 Feb 2013 06:48:43 -0800 (PST) Received: from [192.168.2.3] ([187.36.184.190]) by mx.google.com with ESMTPS id e21sm22231787ani.0.2013.02.06.06.48.40 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Feb 2013 06:48:41 -0800 (PST) Delivered-To: ruby-core@ruby-lang.org Date: Wed, 6 Feb 2013 23:51:07 +0900 Posted: Wed, 06 Feb 2013 12:48:39 -0200 From: Rodrigo Rosenfeld Rosas Reply-To: ruby-core@ruby-lang.org Subject: [ruby-core:51920] Re: [ruby-trunk - Feature #7792] Make symbols and strings the same thing To: ruby-core@ruby-lang.org Message-Id: <51126D47.3090902@gmail.com> In-Reply-To: <51126A63.4090302@gmail.com> References: <51126A63.4090302@gmail.com> X-ML-Name: ruby-core X-Mail-Count: 51920 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address ruby-core-ctl@ruby-lang.org; help= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=1qFzGsvANrfn/tI2b1osNLaQgvVHVG5asKH0yuyiSVA=; b=wuOufzYZBZ7BYSR/4Ubx9PR+76NRkAvPwMGRjVTG2/82AJuVI8vueFEC9aMbZ1VTa9 TJeIwHcTXAtM/H58s4yig0HGK1xFgplWlV4eMiKwPzjTd3u2JwBnPKgW8ShwTRDKxVQO 8NWR/ybf2Pp+m9kE1sw08vM8l8zlcjuJ6kuiC5ELzDodh88KYCxZ6y8BNPmQVn1b4xvr 9/JPKCN5oiENVLuO1Etw6+AgRXsOhwdNav2Ax5a7iVOo+7MibfBwY+XbVrNBeqd+sAWM XCOqasLi88/Fk8CdM6X59QzVfVcYgBdF6ICG+uAb5CRFLsUsmZx+zS9sdsP3Xu2HfJqq rK1g== X-Received: by 10.236.57.10 with SMTP id n10mr36700550yhc.50.1360162122475; Wed, 06 Feb 2013 06:48:42 -0800 (PST) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-Id: ruby-core.ruby-lang.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: 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?