From: Aleksei Guzev Date: 2002-11-18T22:28:47+09:00 Subject: Re: ruby-dev summary 18711-18810 "Yukihiro Matsumoto" wrote in message news:1037624440.355792.19569.nullmailer@picachu.netlab.jp... > H, > > In message "Re: ruby-dev summary 18711-18810" > on 02/11/18, "Aleksei Guzev" writes: > > |> [ruby-dev:18651] Enumerable#zip (contd.) > | > |Aplying zip as an instance method to the module Enumerable makes the method > |assymetric. There is the object left to the method name, and its parameters. > |But in mind the operation is symmetrical except the order is significant. > |Where should the object be placed in sequence? > > |If the longest sequence would be chosen, what value should receive the > |absent items? > > nil But this will raise TypeError in the case of incompatible type/length of the sequences. This would hide the error and violate "...* (on zip) We should not raise exceptions when the length of the components are differ..." > > |While the exception will not be raised how can one know if the sequences > |have different lengths? > > By explicit check, if you really want to know. > > matz. > >