[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: exists $foo[7] and delete $foo[7]
At 13.06 -0500 2000.01.13, Ronald J Kimball wrote:
>On Thu, Jan 13, 2000 at 09:18:35AM -0800, Gurusamy Sarathy wrote:
>> I should note that I'm not particularly attached to this going in for
>> 5.6. Maybe we should take a vote on whether we want to keep it or
>> not. I think I've already cast my vote by putting it in. :-)
>>
>
>I vote a strong NO. I see no utility in this feature, only confusion.
>delete() and exists() are well-defined for hashes. They are not
>well-defined for arrays. Hashes and arrays are two different data
>structures; they should have different manipulator functions.
While I agree with this sentiment, we already crossed that bridge, I think,
when we decided on implementing pseudohashes. I am not saying these should
be extended to arrays; I think I agree that they should not be. But you
seem to be presenting the lines as clear, and they've already been blurred.
>I dread the day when push(), pop(), shift(), unshift(), and splice() are
>extended to work on hashes...
Until we have pseudoarrays, I don't think we need to worry about it. :)
--
Chris Nandor mailto:pudge@pobox.com http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6'])
- Follow-Ups from:
-
Andy Dougherty <doughera@lafayette.edu>
- References to:
-
Larry Wall <larry@wall.org>
Gurusamy Sarathy <gsar@activestate.com>
Ronald J Kimball <rjk@linguist.dartmouth.edu>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]