On Fri, May 06, 2005 at 10:43:07AM -0600, Luke Palmer wrote:
: > :: namespace ternary
:
: That's "class sigil" in term position. Separating namespaces never
: have preceding whitespace, so they're always part of some larger term.
Really more like a package sigil, which can be used as a module, class,
role, or type sigil.
: > X active repeat ???
: > XX active repeat ???
:
: Those two haven't been blessed, and, though I don't have the message,
: I think I remember Larry being a little hesitant about adding those.
The question is whether to treat the left arg the same way we treat
attribute defaults, with one free closure call. We could say that
{ rand 10 } x 100
{ rand 10 } xx 100
should just automatically call the closure on the left repeatedly. In
the rare, rare case that you want to actually replicate a closure, you'd
have to say
{ { rand 10 } } x 100
{ { rand 10 } } xx 100
Then we save two operators. We could also pass the counter in as $_:
{ foo($_) } xx 100; # call foo(0), foo(1)...foo(99)
Which means
@chars = { substr($x, $_, 1) } xx $x.chars;
would be a silly way to write a split ''.
Larry