From: Simon Strandgaard Date: 2004-04-13T09:19:13+09:00 Subject: Re: proposal - zip to do padding On Tue, 13 Apr 2004 09:23:23 +0900, Dan Doel wrote: [snip] > I suppose you could say Enumerables are how you distinguish between zipping > and padding arguments. However, there's no way to pad with Enumerables, then. > I suppose that might not be a common wish, but there's that to consider. [snip] > You noticed this in your reply elsewhere in the thread, and asked for good > ways to separate padding and enumerating values. I just don't think there > are any intuitive ones. Having variable numbers of arguments that are > semantically different based only on their inheritance hierarchy doesn't seem > like a good solution to me. [snip] > I just don't think a pure argument solution will get you there. You're welcome > to prove me wrong, though. > Yes.. I forgot considering how to distinguish the arguments. Just when I saw that '(4..6).zip(nil)' was possible, I thought it might be a good idea if other non-array-like arguments could be passed to #zip to be used for padding. Until we find a nicer way to distinguish, I then agree that my proposal is bad. I don't have any ideas besides using enumerable. this proposal has been withdrawen Thanks for drilling into this ;-) At least this layed the foundation for the other thread about #zip taking a block. So your comments hasn't been wasted effort. I like loud thinking.. it would be a shame to loose good ideas, just because people keep silent about them. I can only recommend others to speak out about their ideas. Besides that I am over-curious to read about what other people are having of ideas. -- Simon Strandgaard