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

2007-05-29 Thread Darren Duncan
At 4:40 PM -0700 5/29/07, Larry Wall wrote: Hmm, maybe we should just rename Object to something more generic. There are plenty of candidates: Top Idea Noun Item Proto Thing Notion Concept Subject Reality Invocant Universal EveryThing Abstr

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

2007-05-29 Thread larry
Author: larry Date: Tue May 29 17:38:24 2007 New Revision: 14408 Modified: doc/trunk/design/syn/S06.pod Log: Extensibility of "is cached" explained, as requested by gabriele renzi++ Modified: doc/trunk/design/syn/S06.pod ===

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

2007-05-29 Thread Mark J. Reed
> Well, yes, "Everything is an Object" is the politically correct mantra. :) True, but junctions aren't usually in the scope of CS PC... OK, so let me see if I can wrap a conceptualization around this. Logically, the type "Object" is itself a junction, that of all possible types, while "Any" me

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

2007-05-29 Thread Larry Wall
On Tue, May 29, 2007 at 06:46:21PM -0400, Mark J. Reed wrote: : My counterintuition just went off again. The more restrictive type is : called "Any"? Object includes junctions? Well, yes, "Everything is an Object" is the politically correct mantra. :) And in Perl 6, "Any" does not really mean

Re: [S02] Sigils

2007-05-29 Thread gabriele renzi
Jonathan Lang wrote: From S02: -- Perl 6 includes a system of B to mark the fundamental structural type of a variable: $ scalar (object) @ ordered array % unordered hash (associative array) & code/rule/token/regex :: package/module/class/role/subset/enum/type/grammar

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

2007-05-29 Thread Larry Wall
On Tue, May 29, 2007 at 05:29:18PM -0400, Chas Owens wrote: : Okay, obviously I have more synopsis to read, but currently Pugs says: : pugs> my $posinf = * : Inf : pugs> my $neginf = -* : -Inf : : which made me think * is Inf in scalar context. Is this a bug in Pugs then? Yes, basically. * shou

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

2007-05-29 Thread Mark J. Reed
My counterintuition just went off again. The more restrictive type is called "Any"? Object includes junctions? On 5/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Author: larry Date: Tue May 29 14:18:27 2007 New Revision: 14407 Modified: doc/trunk/design/syn/S02.pod Log: Clarificati

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 &prefix:<->:(Whatever) is defined at a

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

2007-05-29 Thread larry
Author: larry Date: Tue May 29 14:18:27 2007 New Revision: 14407 Modified: doc/trunk/design/syn/S02.pod Log: Clarification of relationship of Any and Object types requested by dduncan++ Modified: doc/trunk/design/syn/S02.pod ===

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

2007-05-29 Thread Larry Wall
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 &prefix:<->:(Whatever) is defined at all, so that's probably a run-time failure unless som

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 Perl 6 does not support :

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

2007-05-29 Thread Larry Wall
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 Perl 6 does not support : >+infinite strings. (At least, not yet...) : snip

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

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

2007-05-29 Thread larry
Author: larry Date: Tue May 29 12:03:39 2007 New Revision: 14406 Modified: doc/trunk/design/syn/S12.pod Log: Allow closures as indirect methods as suggested by blazer++ Modified: doc/trunk/design/syn/S12.pod == --- d

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

Re: x, xx, and negative counts

2007-05-29 Thread Mark J. Reed
On 5/29/07, Larry Wall <[EMAIL PROTECTED]> wrote: The main rationale for going with null return is that the biggest use of replication has generally been something like: say $foo, ' ' x (20 - $foo.width), $bar and it would be counterproductive to degrade to "negative" spaces in such a case.

Re: x, xx, and negative counts

2007-05-29 Thread Larry Wall
On Tue, May 29, 2007 at 02:21:37PM -0400, Mark J. Reed 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,

Re: x, xx, and negative counts

2007-05-29 Thread Andy Armstrong
On 29 May 2007, at 19:21, Mark J. Reed 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 first

x, xx, and negative counts

2007-05-29 Thread Mark J. Reed
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 first thought. Does it make sense to anyone else? I

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

2007-05-29 Thread larry
Author: larry Date: Tue May 29 11:14:43 2007 New Revision: 14405 Modified: doc/trunk/design/syn/S03.pod Log: Clarification of x and xx semantics requested by chas.owens++ Modified: doc/trunk/design/syn/S03.pod == ---

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

2007-05-29 Thread larry
Author: larry Date: Tue May 29 09:18:54 2007 New Revision: 14404 Modified: doc/trunk/design/syn/S02.pod doc/trunk/design/syn/S03.pod Log: Applied s:g{ '[-1]' } = '[*-1]' patch from Dataweaver++ Modified: doc/trunk/design/syn/S02.pod