[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: exists $foo[7] and delete $foo[7]
<london@pixelmagic.com> wrote:
> if delete is allowed on a pseudohash, please leave the weirdness
> to the person using the pseudohash. calling delete on a pseudohash
> would set that element to 'undef because its deleted' or some
> strangeness. and it would be the programmers responsibility to
> figure it out.
>
> delete on a normal array should splice out that element,
> or its another weirdness to remember about perl.
Disagree strongly. We already have splice and missing elements /are/
useful - even if Perl doesn't implement sparse arrays in core, a tied
array may well do.
/Pete/
"THIS IS THE COMPATIBILITY POLICE.
RESTORE YOUR ORIGINAL TOKE.C AND BACK AWAY SLOWLY."
- References to:
-
london@pixelmagic.com
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]