On Mon Sep 23 12:09:04 2013, masak wrote:
> lue (>):
> > The infix:["..."] form of declaration should at least have a better
> > error message.
>
> Not just that. S02, S03, S06, and S12 contain examples of this syntax. So
> at the upper end this should actually be allowed, not just have a better
> error message.
>
> Of course, arbitrary values inside the [] only make sense if they're
> known at compile-time (constants, for example). Care will need to be
> taken; tests will need to be written.
>
> On the caller side, even runtime values are fine; see S12:444 for an
> example.
Just a status update: This does not work (yet). On the plus side there is no
longer an internal error message:
$ perl6 -e 'sub infix:["@"] ($a, $b) { 42 }'
===SORRY!=== Error while compiling -e
Colon pair value '"@"' too complex to use in name
at -e:1
------> sub infix:["@"]⏏ ($a, $b) { 42 }