Skip Menu |
Report information
Id: 131302
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [LTA] Seq:D ~~ Seq:D uses Any.ACCEPTS
Download (untitled) / with headers
text/plain 611b
Lists have their own .ACCEPTS that does the check based on elements. You can smartmatch a Seq against a List or Array and get that behaviour, but if you smartmatch it against another Seq, you get the default Any.ACCEPTS behaviour. <Zoffix_> m: say (1,).Seq ~~ (1,) <camelia> rakudo-moar ba0581: OUTPUT: «True␤» <Zoffix_> m: say (1,).Seq ~~ [1,] <camelia> rakudo-moar ba0581: OUTPUT: «True␤» <Zoffix_> m: say (1,).Seq ~~ (1,).Seq <camelia> rakudo-moar ba0581: OUTPUT: «False␤» IMO it should do the same thing as List.ACCEPTS while, perhaps, .cache'ing the Seq in the process


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org