develooper Front page | perl.perl6.language | Postings from March 2005

Re: A possible solution for s?pintf

Thread Previous | Thread Next
Larry Wall
March 12, 2005 16:18
Re: A possible solution for s?pintf
Message ID:
On Sun, Mar 13, 2005 at 12:58:50AM +0100, Juerd wrote:
: I'm really getting the feeling I'm the only one who uses sprintf because
: it *separates* and lets you write complex things on one simple line.
: That, and I use it a lot in one liners.

Then you should feel much better after you read my message where I use
"as" as a list operator.

: I know there are alternatives, and they're good. I can certainly see how
: .as can come in handy. But sprintf (or call it "format", which I do like
: better than the unpronounceable "sprintf") as a semi-list operator is
: very useful too. I just don't like the amount of typing (with the nested
: delimiters: parens and quotes) it requires.

A list operator doesn't require parens unless you start chunking up
your outputs into sublists, but if you do that then you're falling
into the same trap of scattering complexity around that you complained
about for .as().


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About