You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on previous discussions in R#1344, it was stated that .list can return any Positional. However, a bunch of core code assumes it'll get a something a lot more like a List from that method.
A Positional doesn't require implementation of .kv, for example, so if I return this class from .list, I get an infiniloop hang because it keeps trying to coerce itself to something more like a List:
$ perl6 -e 'class :: does Positional { method list { self } }.new.kv.perl.say'
^C
Should the description of .list be more like return any corePositional type?
The text was updated successfully, but these errors were encountered:
This is probably more of a docs Issue:
Based on previous discussions in R#1344, it was stated that
.listcan return anyPositional. However, a bunch of core code assumes it'll get a something a lot more like aListfrom that method.A
Positionaldoesn't require implementation of.kv, for example, so if I return this class from.list, I get an infiniloop hang because it keeps trying to coerce itself to something more like aList:Should the description of
.listbe more like return any corePositionaltype?The text was updated successfully, but these errors were encountered: