Let me just clarify something that my intuition led me to believe:

    sub foo(&infix:<+>) { 1 + 2 }
    sub bar($a, $b) { say "$a,$b" }
    foo(&bar);     # "1,2"

That is, operator names can be lexically bound just like any other
name.  Also, this doesn't have any affect on implicit coercions, etc. 
(That is, lexically binding &prefix:<+> does not change things in
numeric context; only when there's actually a + in front of them)


Reply via email to