#1416: Unreasonably painful to add a method to all *Array PMCs
--------------------+-------------------------------------------------------
Reporter: japhb | Owner:
Type: RFC | Status: new
Priority: normal | Milestone:
Component: core | Version: 2.0.0
Severity: medium | Keywords: Array method
Lang: | Patch:
Platform: |
--------------------+-------------------------------------------------------
Comment(by kurahaupo):
This is by no means the only problem we have with the various array types,
as detailed in [wiki:ArrayTasklist].
Unfortunately I don't think "one common ancestor" is the the best answer.
The problem is that what we regard as "Array" is in fact a combination of
several different features. IMHO what's needed isn't *one* root type, but
a number of them:
* Orderable (iterable, reversible)
* Indexable read
* Indexable write
* Deque (push, pop, shift, unshift)
* Tuple (fixed-sized, equivalent to a List)
However we could use this ticket as an opportunity to implement a more
general refactoring.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1416#comment:1>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets