|
Subject: Generic classes. Newsgroups: gmane.comp.lang.perl.perl6.language Date: 2005-08-14 12:28:33 GMT (3 years, 46 weeks, 3 days, 15 hours and 48 minutes ago)
S06 made many explicit uses of generics as classes, which I find
difficult to reconcile with the "only roles takes type parameter"
ruling. For example:
my Hash of Array of Recipe %book;
my Hash[returns=>Array[returns=>Recipe]] %book;
And later:
class LoudArray is Array { ... }
Clearly, here Hash and Array are used as instantiable, generic classes,
instead of mere roles. Does this need to change, or can we lift the
ban on type-parameterized classes?
Thanks,
/Autrijus/
|
|
|