Re: Comment on PEP-0322: Reverse Iteration Methods
David Abrahams wrote:
[color=blue]
> Alex Martelli <aleax@aleax.it > writes:
>[color=green]
>> David Abrahams wrote:
>> ...[color=darkred]
>>> Also, the idea of denying tuples the ability to reverse iterate seems
>>> arbitrary and capricious.[/color]
>>
>> Sure, but so is denying them, e.g., non-mutating methods such as
>> .index() and .count().[/color]
>
> Not IMO. Immutability is a very useful trait.[/color]
Sure, very useful indeed -- and why does YO suggest that add such
NON-mutating methods would damage immutability in the LEAST...?
[color=blue][color=green]
>> At least we're _consistently_ arbitrary and capricious!-)[/color]
>
> Not in this case.[/color]
Some amplification would be welcome, because the above comment
on immutability's usefulness is totally obscure to me in context.
Alex
David Abrahams wrote:
[color=blue]
> Alex Martelli <aleax@aleax.it > writes:
>[color=green]
>> David Abrahams wrote:
>> ...[color=darkred]
>>> Also, the idea of denying tuples the ability to reverse iterate seems
>>> arbitrary and capricious.[/color]
>>
>> Sure, but so is denying them, e.g., non-mutating methods such as
>> .index() and .count().[/color]
>
> Not IMO. Immutability is a very useful trait.[/color]
Sure, very useful indeed -- and why does YO suggest that add such
NON-mutating methods would damage immutability in the LEAST...?
[color=blue][color=green]
>> At least we're _consistently_ arbitrary and capricious!-)[/color]
>
> Not in this case.[/color]
Some amplification would be welcome, because the above comment
on immutability's usefulness is totally obscure to me in context.
Alex
Comment