Hi,
On 04.08.2015 00:52, Faye (via RT) wrote:
# New Ticket Created by Faye
# Please include the string: [perl #125745]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=125745 >
<ShimmerFairy> m: class Foo { }; multi sub infix:<~~>(Foo $a, Foo $b) { 42.6 }; say
Foo.new ~~ Foo; say infix:<~~>(Foo.new, Foo)
<camelia> rakudo-moar a38b59: OUTPUT«True42.6»
<ShimmerFairy> (basically, the Perl 6 grammar treats ~~ specially, so stuff
like this and the chaining bug pop up)
I'd argue that it's permissible to not consider custom infix:<~~>,
because we already provide an avenue for customizing smart-match
behavior (method ACCEPTS of the RHS type).
Also note that the standard infix:<~~> cannot be a normal operator,
because it topicalizes the RHS.
So, not a bug.
(But I cannot reject it in rt.perl.org right now because of login
problems; I hope I'll be able to do so later).
Cheers,
Moritz