Re: Decrement of Numbers in Strings (Was: [svn:perl6-synopsis] r14460 - doc/trunk/design/syn)

2008-04-23 Thread Chas. Owens
quot;060")? > Then you'll have the problem that this gets (or might get) interpreted as > octal somewhere; if not in perl6 directly (because of different base > specifications), you're likely to get problems when passing that to other > programs, eg. via system(). snip If you are certain to want a number then you either need to say $a = +("100"); or use +($a) when passing it. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: Nomenclature Question - BEGIN etc.

2008-04-09 Thread Chas. Owens
On Thu, Apr 10, 2008 at 2:29 AM, Mark J. Reed <[EMAIL PROTECTED]> wrote: > On Thu, Apr 10, 2008 at 2:26 AM, Chas. Owens <[EMAIL PROTECTED]> wrote: > > It looks like they already have a name in S04: Closure traits*. > > > > * http://dev.perl.org/perl6/doc/d

Re: Nomenclature Question - BEGIN etc.

2008-04-09 Thread Chas. Owens
in. > > I don't know, "phase" sounds too specific to me. Does the catching of > an exception really bring us into a new phase of execution? What > about the LAST time through a loop? etc. > > > -- > Mark J. Reed <[EMAIL PROTECTED]> > It lo

Re: Nomenclature Question - BEGIN etc.

2008-04-09 Thread Chas. Owens
t;special named blocks" because > that is not the block name (that already means something). snip The perldocs call them "Five specially named code blocks", The Camel names them individually (e.g. BEGIN block). How about phase blocks? They control in what phase of compilation/runti

Re: Easy question: what is a "list comprehension" ?

2008-04-05 Thread Chas. Owens
x in xrange(100) if x**2 > 3] -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.

Re: Concerns about "{...code...}"

2007-12-21 Thread Chas. Owens
On Dec 21, 2007 4:51 PM, Dave Whipp <[EMAIL PROTECTED]> wrote: > Larry Wall wrote: > > > As for the Q base form, it's not really there so much for end-use, > > For an operator not intended for end use, it has a remarkable low > Huffman rank... > But since it will be combined with adverbs like my

Re: Bite-sized Tasks for the Interested (was Re: Standards bearers)

2007-12-13 Thread Chas. Owens
On Dec 13, 2007 4:37 PM, ispyhumanfly <[EMAIL PROTECTED]> wrote: > Hello list, > > I've created a group on www.hiveminder.org for Perl6 collaborative > task tracking and management. I've done some thinking and I've come up > with a way in which I would like to maintain this group, its organize

Re: Bite-sized Tasks for the Interested (was Re: Standards bearers)

2007-12-13 Thread Chas. Owens
On Dec 13, 2007 6:30 PM, ispyhumanfly <[EMAIL PROTECTED]> wrote: snip > This task list is available via an rss feed. I think this will help > solve the problem in the way you described. snip What is the URL for this feed?

Re: What is the origin of the nickname, "Texas quotes"?

2007-12-07 Thread Chas. Owens
On Dec 7, 2007 5:46 PM, Thom Boyer <[EMAIL PROTECTED]> wrote: snip > But, back to Perl I didn't get an answer to my follow-up question: > > So, it's because <> is so much bigger than «this», "this", or 'this'? snip That is my take on it: "Everything is bigger in Texas", even French Quotes.

Re: What is the origin of the nickname, "Texas quotes"?

2007-12-07 Thread Chas. Owens
On Dec 7, 2007 11:50 AM, Larry Wall <[EMAIL PROTECTED]> wrote: > On Thu, Dec 06, 2007 at 12:12:36PM -0700, Thom Boyer wrote: > > Larry Wall wrote: > >> Good guess, but no. It comes from the fact that Texas always bragged > >> about how they were the largest state in the union, and had the biggest

Re: Ternary endweight alternative?

2007-06-29 Thread Chas Owens
On 6/29/07, raiph <[EMAIL PROTECTED]> wrote: snip Finally, but very importantly imo, what if there are 3 or more alternatives? snip Use a hash or array (depending on the selecting data). system((zip , )<$?OS>); system({win32=>'cls', linux=>'clear', other=>'nuke'}<$?OS>); Of course, this shoul

Re: Web Module (Was: Perl6 new features)

2007-06-22 Thread Chas Owens
On 6/22/07, chromatic <[EMAIL PROTECTED]> wrote: On Friday 22 June 2007 11:07:35 Chas Owens wrote: > Please, god, no. Or at least make two distributions: Bare Perl 6 and > Perl 6. Many companies have a "Only Core Perl" policy. They refuse > to install CPAN modules bec

Re: Web Module (Was: Perl6 new features)

2007-06-22 Thread Chas Owens
On 6/22/07, jerry gay <[EMAIL PROTECTED]> wrote: On 6/22/07, Chas Owens <[EMAIL PROTECTED]> wrote: > Most of the time the policy is enacted by lower-case-l lazy sysadmins > who can't be bothered to type > > perl -MCPAN -e install Foo::Bar > > My normal route a

Re: Web Module (Was: Perl6 new features)

2007-06-22 Thread Chas Owens
On 6/22/07, Daniel Hulme <[EMAIL PROTECTED]> wrote: On Fri, Jun 22, 2007 at 02:07:35PM -0400, Chas Owens wrote: > On 6/22/07, chromatic <[EMAIL PROTECTED]> wrote: > >I also like to proceed from the assumption that the only core modules > >should be those requir

Re: Web Module (Was: Perl6 new features)

2007-06-22 Thread Chas Owens
On 6/22/07, chromatic <[EMAIL PROTECTED]> wrote: On Thursday 21 June 2007 15:23:38 Smylers wrote: > Has Larry yet decreed whether Web will be bundled with Perl 6? I also like to proceed from the assumption that the only core modules should be those required to install other modules. -- c Pl

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

2007-06-22 Thread Chas Owens
On 6/22/07, Mark Overmeer <[EMAIL PROTECTED]> wrote: snip * Jonathan Lang ([EMAIL PROTECTED]) [070622 10:41]: snip > Please forgive my ignorance: what does "AST" stand for? The Abstract Syntax Tree, the result of the code parser, un-interpreted. snip You mean it isn't Andrew S. Tanenbaum? W

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

2007-06-14 Thread Chas Owens
On 6/14/07, Damian Conway <[EMAIL PROTECTED]> wrote: snip To get the multi-line quote, you'd need: say :to(END); =begin POD blah blah blah =end POD END Damian Would this work as well? say :to(END); \x{3D}begin POD blah blah blah \x{3D}end POD END

Re: 'x' vs. 'xx'

2007-06-03 Thread Chas Owens
On 6/3/07, Jonathan Lang <[EMAIL PROTECTED]> wrote: snip From what you're saying, I get the impression that you think that "'-' x 5" ought to produce a single string of five dashes regardless of whether the context is item or list. Correct? (Note: I'm not asking about what the spec says, since

Re: 'x' vs. 'xx'

2007-06-03 Thread Chas Owens
On 6/3/07, Jonathan Lang <[EMAIL PROTECTED]> wrote: Chas Owens wrote: > Jonathan Lang wrote: > > Chas Owens wrote: > > > Jonathan Lang wrote: > > > > Is there any reason why we can't simply define '$a x $n' as being > > > > sho

Re: 'x' vs. 'xx'

2007-06-03 Thread Chas Owens
On 6/3/07, Jonathan Lang <[EMAIL PROTECTED]> wrote: Chas Owens wrote: > Jonathan Lang wrote: > > Is there any reason why we can't simply define '$a x $n' as being > > shorthand for 'cat($a xx $n)'? In what way does the former differ > > from t

Re: 'x' vs. 'xx'

2007-06-02 Thread Chas Owens
On 6/2/07, Jonathan Lang <[EMAIL PROTECTED]> wrote: Is there any reason why we can't simply define '$a x $n' as being shorthand for 'cat($a xx $n)'? In what way does the former differ from the latter, other than the use of a Whatever in place of $n? -- Jonathan "Dataweaver" Lang "$a x $n" is

Re: propose renaming Hash to Dict

2007-06-01 Thread Chas Owens
On 6/1/07, Doug McNutt <[EMAIL PROTECTED]> wrote: At 09:15 -0700 6/1/07, Larry Wall wrote: >: To conclude, as hash definitely tastes better than a dictionary, we >: should stick to that name. ;) >: >: At least nobody can say that Perl is bad taste! > >Then maybe we should rename Array to Skewer o

Re: propose renaming Hash to Dict

2007-05-31 Thread Chas Owens
On 5/31/07, Darren Duncan <[EMAIL PROTECTED]> wrote: Barring some better name, I highly recommend/propose renaming Hash to Dict. And lets rename Perl to Python. This is just change for the sake of change. snip The term Dict (as a short form of "dictionary") is well understood by general peopl

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

2007-05-29 Thread Chas Owens
On 5/29/07, Larry Wall <[EMAIL PROTECTED]> wrote: On Tue, May 29, 2007 at 04:43:20PM -0400, Chas Owens wrote: : Just an odd corner case, but :"foo" x -* : should return an empty string and :"foo" xx -* : should return an empty list, right? I'm doubt &

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

2007-05-29 Thread Chas Owens
On 5/29/07, Larry Wall <[EMAIL PROTECTED]> wrote: On Tue, May 29, 2007 at 04:05:39PM -0400, Chas Owens wrote: : On 5/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: : snip : >+If the count is less than 1, returns the null string. : >+The count may not be C<*> because

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

2007-05-29 Thread Chas Owens
On 5/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: snip +If the count is less than 1, returns the null string. +The count may not be C<*> because Perl 6 does not support +infinite strings. (At least, not yet...) snip Does "may not be c<*>" mean that the compiler should throw a fatal erro

Re: x, xx, and negative counts

2007-05-29 Thread Chas Owens
On 5/29/07, Mark J. Reed <[EMAIL PROTECTED]> wrote: My expectation before reading the delta was that negative counts would do a reversal: "123" x -1 = "321" ('a', 'b', 'c') xx -3 = ('c', 'b', 'a', 'c', 'b', 'a', 'c', 'b', 'a'); I don't know why I think that makes sense, but it was honestly my

what is the behavior of the x operator (string replication) with negative values

2007-05-25 Thread Chas Owens
In my mind perl -le 'print join "\n", map { "[" . 0 x $_ . "]" } -1 .. 1' and pugs -e 'say join "\n", map { "[{ 0 x $_}]" }, -1 .. 1' should both print [] [] [0] But the Pugs code throws pugs: List.genericTake: negative argument Is this Pugs specific behavior or has the the x operator change