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 BD3B51F0371 for ; Tue, 8 Jan 2008 07:18:48 +0900 (JST) Received: from funfun2.nagaokaut.ac.jp (funfun2.nagaokaut.ac.jp [133.44.2.27]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id CD60797D9 for ; Tue, 8 Jan 2008 07:17:28 +0900 (JST) Received: from localhost (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun2.nagaokaut.ac.jp (Postfix) with ESMTP id 0BED98FC1B for ; Tue, 8 Jan 2008 07:17:30 +0900 (JST) X-Virus-Scanned: amavisd-new at funfun2.nagaokaut.ac.jp Received: from funfun2.nagaokaut.ac.jp ([127.0.0.1]) by localhost (funfun2.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tAzPZ6EUUyRY for ; Tue, 8 Jan 2008 07:17:29 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun2.nagaokaut.ac.jp (Postfix) with ESMTP id DF6398FC19 for ; Tue, 8 Jan 2008 07:17:29 +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 855B763005D for ; Tue, 8 Jan 2008 07:17:27 +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 00FA73C224CD8; Tue, 8 Jan 2008 07:16:02 +0900 (JST) Received: from bidwell.textdrive.com (bidwell.textdrive.com [207.7.108.125]) by carbon.ruby-lang.org (Postfix) with ESMTP id 943CC3C21F108 for ; Tue, 8 Jan 2008 07:15:55 +0900 (JST) Received: from [10.0.1.3] (ip68-97-89-187.ok.ok.cox.net [68.97.89.187]) by bidwell.textdrive.com (Postfix) with ESMTP id 95DF4E6E28 for ; Mon, 7 Jan 2008 22:15:59 +0000 (UTC) Delivered-To: ruby-core@ruby-lang.org Date: Tue, 8 Jan 2008 07:15:56 +0900 Posted: Mon, 7 Jan 2008 16:15:58 -0600 From: James Gray Reply-To: ruby-core@ruby-lang.org Subject: Re: Enumerable#zip Needs Love To: ruby-core@ruby-lang.org Message-Id: <4E5E0D72-368C-4F5D-B625-644243C63F02@grayproductions.net> In-Reply-To: <6.0.0.20.2.20080104141417.0b6dd2d0@localhost> References: <4112733A-50F4-4EF9-9B57-D8495B4D3683@grayproductions.net> <6.0.0.20.2.20080104141417.0b6dd2d0@localhost> X-ML-Name: ruby-core X-Mail-Count: 14828 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= X-Mailer: Apple Mail (2.915) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on carbon.ruby-lang.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=7.0 tests=ARIN,AWL,BAYES_20, CONTENT_TYPE_PRESENT,RCVD_NUMERIC_HELO2,X_MAILER_PRESENT autolearn=disabled version=3.1.7 X-Original-To: ruby-core@ruby-lang.org Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes 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: On Jan 4, 2008, at 12:11 AM, Martin Duerst wrote: > At 07:05 08/01/04, James Gray wrote: >> > >> * Making Enumerable#zip() stop at the length of the shortest >> Enumerable among the receiver and arguments really hurt its >> usefulness. It now discards data and it's hard for us to prevent >> that, since we need to lengthen all short Enumerable objects we plan >> to use before the call. The Ruby 1.8 system of limiting the result >> set to the size of the receiver was much more powerful, in my >> opinion. We could find the longest or shortest Enumerable to get the >> length we wanted, filter out the `nil` containing groups it inserted, >> or trim the size of the Enumerable objects involved (easier than >> expanding them). > > I think these arguments make a lot of sense, so I think this > should be moved back to the old behavior, unless there is some > serious implementation problem. Matz, at least this much of my proposal seems uncontested. Can you tell us the reason for the new behavior? James Edward Gray II