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

2006-05-11 Thread larry
Author: larry Date: Thu May 11 23:26:34 2006 New Revision: 9208 Modified: doc/trunk/design/syn/S02.pod doc/trunk/design/syn/S03.pod Log: Cleanup from spinclad++. Modified: doc/trunk/design/syn/S02.pod == --- doc/t

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

2006-05-11 Thread Larry Wall
On Fri, May 12, 2006 at 01:50:59AM +0200, Ruud H.G. van Tol wrote: : Allison Randal schreef: : > larry: : : >> Changed :words/:w to :sigspace/:s and invented ss/// and ms// (or : >> maybe mm//). : > : > I keep expecting 'sigspace' to have something to do signatures. : : /me3, since it alliterat

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

2006-05-11 Thread Ruud H.G. van Tol
Allison Randal schreef: > larry: >> Changed :words/:w to :sigspace/:s and invented ss/// and ms// (or >> maybe mm//). > > I keep expecting 'sigspace' to have something to do signatures. /me3, since it alliterates with sigsep. -- Groet, Ruud

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

2006-05-11 Thread larry
Author: larry Date: Thu May 11 15:39:08 2006 New Revision: 9204 Modified: doc/trunk/design/syn/S03.pod doc/trunk/design/syn/S05.pod doc/trunk/design/syn/S09.pod Log: Typos. Tightened up prefix:<*> to match only before sigils and brackets, so that *foo now always means GLOBAL::foo, and 0.

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

2006-05-11 Thread Allison Randal
Smylers wrote: Allison Randal writes: I keep expecting 'sigspace' to have something to do signatures. So do I. How about :litspace for 'literal space'? Except they aren't exactly literal, because they only indicate where _some_ space has to be, not that it has to be exactly that sort of spac

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

2006-05-11 Thread Smylers
Allison Randal writes: > [EMAIL PROTECTED] wrote: > > > Log: > > Changed :words/:w to :sigspace/:s and invented ss/// and ms// (or > > maybe mm//). > > I keep expecting 'sigspace' to have something to do signatures. So do I. How about :litspace for 'literal space'? Except they aren't exactly

Re: Provisional Foo [Was: [svn:perl6-synopsis] r9176 - doc/trunk/design/syn]

2006-05-11 Thread Smylers
Larry Wall writes: > Yes, the false value is False now, just as the true value is not True. It's not? I thought somebody had just said that it was? > The reason for changing them is to avoid confusion with the built-in > true() function, Makes sense. > So arguably, we could have a rule or pol

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

2006-05-11 Thread Nicholas Clark
On Thu, May 11, 2006 at 02:15:58PM -0700, Allison Randal wrote: > [EMAIL PROTECTED] wrote: > > > >Log: > >Changed :words/:w to :sigspace/:s and invented ss/// and ms// (or maybe > >mm//). > > I keep expecting 'sigspace' to have something to do signatures. I keep thinking that 'sigspace' is the s

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

2006-05-11 Thread Allison Randal
[EMAIL PROTECTED] wrote: Log: Changed :words/:w to :sigspace/:s and invented ss/// and ms// (or maybe mm//). I keep expecting 'sigspace' to have something to do signatures. Larry++ on :s. :) Allison

Re: A rule by any other name...

2006-05-11 Thread Larry Wall
On Thu, May 11, 2006 at 01:55:37PM -0700, Allison Randal wrote: : Oh, and since we're calling them "regexes", I suggest calling them : "regular expressions" too, since both "regex(p)" and "regular : expression" have taken on the popular meaning of "pattern matching". If : we're going to be anti-

Re: A rule by any other name...

2006-05-11 Thread Allison Randal
Oh, and since we're calling them "regexes", I suggest calling them "regular expressions" too, since both "regex(p)" and "regular expression" have taken on the popular meaning of "pattern matching". If we're going to be anti-pedantic, let's be consistently anti-pedantic. :) Allison

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

2006-05-11 Thread Ruud H.G. van Tol
[EMAIL PROTECTED] schreef: > Unary C<~> now imposes a string (C) context on its > argument, and C<+> imposes a numeric (C) context (as opposed to > being a no-op in Perl 5). Shouldn't unary minus be mentioned too? Or would one need C<0-> or C<-+>? > A reduction operator really is a list op

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

2006-05-11 Thread larry
Author: larry Date: Thu May 11 13:33:29 2006 New Revision: 9202 Modified: doc/trunk/design/syn/S03.pod Log: Various clarifications from jerry++ and others Extra dot is now allowed before hyper postfix since whitespace disallowed there Modified: doc/trunk/design/syn/S03.pod ==

Re: A rule by any other name...

2006-05-11 Thread Jonathan Scott Duff
On Thu, May 11, 2006 at 12:19:21PM -0700, Allison Randal wrote: > Jonathan Scott Duff wrote: > >On Wed, May 10, 2006 at 05:58:57PM -0700, Allison Randal wrote: > >>rule: > >>- Has :ratchet and :skip turned on by default > >> > >>- May only be used inside a grammar > > > >Should that be > > > >- Mu

Re: A rule by any other name...

2006-05-11 Thread Allison Randal
Patrick R. Michaud wrote: Whitespace in regexes and rules is metasyntactic, in that it is not matched literally. Effectively what the :w (or :words or :skip) option does it to change the metasyntactic meaning of any whitespace found in the regex. Or, another way of thinking of it -- as S05

Re: A rule by any other name...

2006-05-11 Thread Allison Randal
Jonathan Scott Duff wrote: On Wed, May 10, 2006 at 05:58:57PM -0700, Allison Randal wrote: rule: - Has :ratchet and :skip turned on by default - May only be used inside a grammar Should that be - Must be declared as part of a grammar or role ??? It is: - The 'rule' keyword may only be

Re: A rule by any other name...

2006-05-11 Thread Allison Randal
Patrick R. Michaud wrote: On Thu, May 11, 2006 at 08:57:53PM +0800, Audrey Tang wrote: Patrick R. Michaud wrote: - is a single character of obligatory whitespace Hmm, it's literal ' ' (that is, \x20), not "whitespace" in general, right? For "obligatory whitespace" we have \s. Oops, you're

Re: A rule by any other name...

2006-05-11 Thread Allison Randal
Damian Conway wrote: skip: - We keep :words as shorthand for :skip(//) - And :skip is shorthand for :skip(//) ...where defaults to , but is distinct from it (i.e. it can be redefined independently). It also has the benefit that developers redefining can call as one of the alternates i

Re: Provisional Foo [Was: [svn:perl6-synopsis] r9176 - doc/trunk/design/syn]

2006-05-11 Thread Nicholas Clark
On Thu, May 11, 2006 at 10:24:24AM -0700, Larry Wall wrote: > function as a subset type. Constant functions are naturally 0-ary, > and in C culture tend to be uppercase anyway. So arguably, we could > have a rule or policy that 0-ary functions are generally uppercase, > not just the constant one

Re: S02: generalized quotes and adverbs

2006-05-11 Thread Larry Wall
On Wed, May 10, 2006 at 08:09:45AM +0100, Daniel Hulme wrote: : > qX ::= "q:x:y:z"; : > : > as a simple, argumentless "word" macro. : But would that DWIM when I come to write : : qX(stuff, specifically not an adverb argument); : : ? Just looking at it, I would expect qX() to call a function

Provisional Foo [Was: [svn:perl6-synopsis] r9176 - doc/trunk/design/syn]

2006-05-11 Thread Larry Wall
On Thu, May 11, 2006 at 07:44:54AM -0400, Elyse M. Grasso wrote: : Is "but false" now spelled "but False"? If not, if there a reason for the : asymmetry? Yes, the false value is False now, just as the true value is not True. The reason for changing them is to avoid confusion with the built-in tru

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

2006-05-11 Thread larry
Author: larry Date: Thu May 11 09:55:36 2006 New Revision: 9197 Modified: doc/trunk/design/syn/S05.pod Log: Changed :words/:w to :sigspace/:s and invented ss/// and ms// (or maybe mm//). Modified: doc/trunk/design/syn/S05.pod ==

Re: A rule by any other name...

2006-05-11 Thread Audrey Tang
Ruud H.G. van Tol wrote: > Are all or some of the following equivalent to ? > > U+00A0 No-Break Space > U+202F Narow No-Break Space > U+FEFF Zero Width No-Break Space > U+2060 Word Joiner No. A05 makes it explicit is just \x20, and S05 also says that it matches one "space char", wh

Re: A rule by any other name...

2006-05-11 Thread Ruud H.G. van Tol
Audrey Tang wrote: > Patrick R. Michaud wrote: >> - is a single character of obligatory whitespace > > Hmm, it's literal ' ' (that is, \x20), not "whitespace" in > general, right? For "obligatory whitespace" we have \s. Are all or some of the following equivalent to ? U+00A0 No-Break Space

Re: A rule by any other name...

2006-05-11 Thread Daniel Hulme
> >Including :skip(//). Yes, agreed, it's a huge > >improvement. I'd be more comfortable if the default rule to use for > >skipping was named instead of . (On IRC was also > >proposed, but the connection between :skip and is more > >immediately obvious.) > Yes, I like too. I too keep mistakel

Re: A rule by any other name...

2006-05-11 Thread Patrick R. Michaud
On Thu, May 11, 2006 at 08:57:53PM +0800, Audrey Tang wrote: > Patrick R. Michaud wrote: > >> - is a single character of obligatory whitespace > > Hmm, it's literal ' ' (that is, \x20), not "whitespace" in general, > right? For "obligatory whitespace" we have \s. Oops, you're correct, I forgot

Re: A rule by any other name...

2006-05-11 Thread Jonathan Scott Duff
On Wed, May 10, 2006 at 05:58:57PM -0700, Allison Randal wrote: > rule: > - Has :ratchet and :skip turned on by default > > - May only be used inside a grammar Should that be - Must be declared as part of a grammar or role ??? The verb "used" doesn't make much sense to me there. I use a rule

Re: A rule by any other name...

2006-05-11 Thread Audrey Tang
Patrick R. Michaud wrote: >> - is a single character of obligatory whitespace Hmm, it's literal ' ' (that is, \x20), not "whitespace" in general, right? For "obligatory whitespace" we have \s. > This one has bugged me since the day I first saw it implemented > in PGE. We _already_ have \s, , a

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

2006-05-11 Thread Elyse M. Grasso
On Thursday 11 May 2006 5:52 am, [EMAIL PROTECTED] wrote: > * S06: "but true" is now spelled as "but True" > > ... > return $error but false if $error; > -return 0 but true; > +return 0 but True; > } > > Properties are predeclared as roles and implemented

Re: A rule by any other name...

2006-05-11 Thread Ruud H.G. van Tol
[EMAIL PROTECTED] schreef: > James Mastros: >> Can I suggest we keep match meaning thing you get when you run a >> thingy against a string, and make "matcher" be the thingy that gets >> run? > > Speaking of the word "match", what I'd really like is to keep it > meaning stuff that matches. Unfortu

Re: A rule by any other name...

2006-05-11 Thread mr . green
On 2006-May-10 at 1:38, James Mastros wrote: >Can I suggest we keep match meaning thing you get when you run a thingy >against a string, and make "matcher" be the thingy that gets run? Speaking of the word "match", what I'd really like is to keep it meaning stuff that matches. Unfortunately it a

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

2006-05-11 Thread autrijus
Author: autrijus Date: Thu May 11 02:52:17 2006 New Revision: 9176 Modified: doc/trunk/design/syn/S06.pod Log: * S06: "but true" is now spelled as "but True" Modified: doc/trunk/design/syn/S06.pod == --- doc/trunk/des