Martin (>):
> 5. And pretty please could we have infix:<%>(Str,Capture) as an alias for
> sprintf? (Not that I'm normally a Python fan, but that feature has a
> particularly wholesome appeal about it.)

There's no problem adding this to either your user code or to CORE
today. All the prerequisites are there.

But I doubt it'll end up in CORE, and here's why:

* We have sprintf and .fmt already, and they cover that ecological niche.
* More importantly, infix:<%> is taken already in mainline Perl 6, by
a mathematical operator, no less. Perl operators in general and Perl 6
operators in particular have been about not mixing meanings of
operators, and if it's a math operator it cannot also be a string
formatting one -- for pretty strong philosophical reasons.

But, again, there's nothing to prevent you from defining a multi
infix:<%> in your code today, or even package it in a module and make
it re-usable.

// Carl

Reply via email to