sprintf and snake envy

2006-07-04 Thread Brad Bowman
Hello, It seems that sprintf is will still be around in Perl 6 [1], and that sprintf formats will be available using the .as() method. While looking at some Python docs [2] I noticed two things that might be worth stealing; a sprintf operator (%) and named parameters in the format string: a =

Re: sprintf and snake envy

2006-07-04 Thread Larry Wall
On Tue, Jul 04, 2006 at 05:06:54PM +1000, Brad Bowman wrote: : Hello, : : It seems that sprintf is will still be around in Perl 6 [1], : and that sprintf formats will be available using the .as() method. : While looking at some Python docs [2] I noticed two things that might : be worth stealing;

Re: sprintf and snake envy

2006-07-04 Thread Nicholas Clark
On Tue, Jul 04, 2006 at 05:06:54PM +1000, Brad Bowman wrote: Hello, It seems that sprintf is will still be around in Perl 6 [1], and that sprintf formats will be available using the .as() method. While looking at some Python docs [2] I noticed two things that might be worth stealing; a

Re: sprintf and snake envy

2006-07-04 Thread Larry Wall
On Tue, Jul 04, 2006 at 05:27:33PM +0100, Nicholas Clark wrote: : I'm not convinced that sprintf needs an operator. It's not commonly used in : any code I've looked at, which to me suggests that it's not good huffman : coding to use up a terse symbol for it, denying that symbol to something :

[svn:perl6-synopsis] r9812 - doc/trunk/design/syn

2006-07-04 Thread audreyt
Author: audreyt Date: Tue Jul 4 15:37:53 2006 New Revision: 9812 Modified: doc/trunk/design/syn/S11.pod Log: * S11: To maintain implementation neutrality, the p6-in-p5 incantation is no longer: use v6-pugs; it's now: use v6-**; Modified: doc/trunk/design/syn/S11.pod

The exact value of infinity [Was: Re: sprintf and snake envy]

2006-07-04 Thread Dan Kogai
On Jul 05, 2006, at 01:25 , Larry Wall wrote: What made me laugh is that Pugs knows the exact value of infinity: pugs my $a = {$^lang has $^c.as('%03d') quote types.}(:c (Inf),:langPerl) Perl has 1797693134862315907729305190789024733617976978942306572734300811577326