Ashley Winters asked:

> > It *might* possibly work to hyper the constructor:
> >
> >     my ($a, $b) = ^new Foo
> 
> Would prefix ^ always return 'wanted' number of repetitions? Like a
> smart C<x Inf>?


This does bother me about the above proposed syntax/semantics. Hyperoperations
take their "magnitude" from that of their operand(s).
I would have expected the above example needed to be:

         my ($a, $b) = ^new (Foo,Foo);

or maybe:

         my ($a, $b) = ^new Foo x 2;

Damian

Reply via email to