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

2007-06-03 Thread Jonathan Lang
[EMAIL PROTECTED] wrote: Author: larry Date: Sun Jun 3 17:23:15 2007 New Revision: 14415 Modified: doc/trunk/design/syn/S03.pod doc/trunk/design/syn/S04.pod doc/trunk/design/syn/S06.pod Log: typo from Aaron Crane++ s/cat/list/ for flattening captures in order cat() now only produces p

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

2007-06-03 Thread larry
Author: larry Date: Sun Jun 3 17:23:15 2007 New Revision: 14415 Modified: doc/trunk/design/syn/S03.pod doc/trunk/design/syn/S04.pod doc/trunk/design/syn/S06.pod Log: typo from Aaron Crane++ s/cat/list/ for flattening captures in order cat() now only produces pseudo-strings even in list

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

2007-06-03 Thread Aaron Crane
[EMAIL PROTECTED] writes: > @@ -562,10 +625,10 @@ > @list xx $count > > Evaluates the left argument in list context, replicates the resulting > -Capture value the number of time specified by the right argument and > +C value the number of time specified by the right argument and Presumably

Re: 'x' vs. 'xx'

2007-06-03 Thread Jonathan Lang
Chas Owens wrote: The current Perl 5 behavior is [EMAIL PROTECTED]:~$ perl -le 'my @a = ("-" x 5, "foo", "-" x 5); print "@a"' - foo - [EMAIL PROTECTED]:~$ perl -le 'my @a = (("-") x 5, "foo", ("-") x 5); print "@a"' - - - - - foo - - - - - I am against anything other than that for x o

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 Jonathan Lang
Mark J. Reed wrote: Is "item context" what we're calling scalar these days, or something else? According to S03, it does indeed appear that "item context" is the current terminology for what perl 5 called "scalar context": The item contextualizer item foo() The new name for Perl 5's s

Re: 'x' vs. 'xx'

2007-06-03 Thread Mark J. Reed
Is "item context" what we're calling scalar these days, or something else? On 6/3/07, Jonathan Lang <[EMAIL PROTECTED]> wrote: Chas Owens wrote: > I am almost certain that the following code is in list context. > > pugs> my @a = '-' x 5, 'foo', '-' x 5; > pugs> @a > ("-", "foo", "-") > p

Re: 'x' vs. 'xx'

2007-06-03 Thread Jonathan Lang
Chas Owens wrote: I am almost certain that the following code is in list context. pugs> my @a = '-' x 5, 'foo', '-' x 5; pugs> @a ("-", "foo", "-") pugs> my @b = cat('-' xx 5), 'foo', cat('-' xx 5) ("-", "-", "-", "-", "-", "foo", "-", "-", "-", "-", "-") However, it does seem that Pug'

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 > > > > shorthand for 'cat($a xx $n)'? In what way does the former differ > > >

Re: 'x' vs. 'xx'

2007-06-03 Thread Jonathan Lang
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 > > > 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

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 the latter, other than the use of a Whatever in place