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 74E9E17CF7D0 for ; Fri, 17 May 2013 18:12:55 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id EF382EA6E68 for ; Fri, 17 May 2013 17:48:11 +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 23C3697A826 for ; Fri, 17 May 2013 17:48:12 +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 ceNdH11uVKNx for ; Fri, 17 May 2013 17:48:11 +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 E473597A820 for ; Fri, 17 May 2013 17:48:11 +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 C66A795241F for ; Fri, 17 May 2013 17:48:09 +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 44B2C3C21ED6A; Fri, 17 May 2013 17:48:08 +0900 (JST) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by carbon.ruby-lang.org (Postfix) with ESMTP id 189223C21ED67 for ; Fri, 17 May 2013 17:48:06 +0900 (JST) Received: by mail-pd0-f171.google.com with SMTP id t12so1405874pdi.2 for ; Fri, 17 May 2013 01:48:06 -0700 (PDT) Received: from hudie.local (202-127-185-008.users.bc9.ne.jp. [202.127.185.8]) by mx.google.com with ESMTPSA id tq8sm10311913pbc.30.2013.05.17.01.22.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 May 2013 01:22:14 -0700 (PDT) Delivered-To: ruby-core@ruby-lang.org Date: Fri, 17 May 2013 17:48:07 +0900 Posted: Fri, 17 May 2013 17:22:10 +0900 From: Nobuyoshi Nakada Reply-To: ruby-core@ruby-lang.org Subject: [ruby-core:55023] Re: [ruby-trunk - Feature #6721] Object#yield_self Sender: Nobuyoshi Nakada To: ruby-core@ruby-lang.org Message-Id: <5195E8B2.6080105@ruby-lang.org> In-Reply-To: References: X-ML-Name: ruby-core X-Mail-Count: 55023 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 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 X-Greylist: delayed 1214 seconds by postgrey-1.27 at carbon; Fri, 17 May 2013 17:48:07 JST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=4WQhjDBVgvMiA4pcYvgY2WPtOqCXQRqsGXoyjFSBVWQ=; b=KgHMTbyvTYyxc6pNuwZn0nf2m6hdc30ns0x+4Zb4ShwFIaVXYKlNeNLC3YN17WF+U/ XBOIzBUXMKNvu6p/o2q/9B38EqIeSlmlptdRZesay2PwSWkCryhBXn22adqwvQqg/irZ fEdBW1vD7FTNklAx1C98l5HUTD+zU+/XbxNFHLnwIN9Bl4LSoVRpILafvwaBofrNJUpa 9V9RoF60nJ8k35ABbv0Buc2VWjLu1R60dboCKtAyZJJa4AniB0H7dH9cXpRqYVpzb/Va kgaE5xqZsqT/ALnu2oH5w14uHSEvDbf7jNm2NuKPWiFGupuV2pMVAH1+mW2ORwPB+wdC kDbA== X-Received: by 10.66.163.99 with SMTP id yh3mr47202127pab.22.1368778935324; Fri, 17 May 2013 01:22:15 -0700 (PDT) X-Enigmail-Version: 1.5.1 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: (13/05/17 17:01), aleph1 (Elias Levy) wrote: > map may be the best choice, as its already used in enumerables and this is a natural equivalent for single objects. That said, it may lead to unnoticed bugs if someone thinks they are applying a map operation on an enumerable but for some reason they do so against some other object. So maybe one of the other names is better to ensure such cases fail. If it were Kernel#map, which would you expect by `{foo: 42}.map {...}` ?