[perl6/specs] 325f7b: fix syntax in the advent calendar entry

2015-12-31 Thread GitHub
S99-glossary.pod Log Message: --- fix syntax in the advent calendar entry

[perl6/specs] 8fb3cd: various minor casing/spacing/grammar/syntax fixes

2015-10-14 Thread GitHub
/index.html Log Message: --- various minor casing/spacing/grammar/syntax fixes ◦ unicode→ Unicode [except unicode pragma] ◦ Perl6 → Perl 6 ◦ Perl5 → Perl 5 [except Perl5ish] ◦ a → an [before vowel

[perl6/specs] 3bf2eb: Fix syntax error and add clarification in S07-list...

2015-09-20 Thread GitHub
S07-lists.pod Log Message: --- Fix syntax error and add clarification in S07-lists

[perl6/specs] 35bcd4: TBD: Redundant material in grammar/parser/syntax a...

2015-05-06 Thread GitHub
S99-glossary.pod Log Message: --- TBD: Redundant material in grammar/parser/syntax analysis

[perl6/specs] 8969a7: [S32::Exception] Add X::Syntax::AddCategorial::Mis...

2015-01-01 Thread GitHub
-library/Exception.pod Log Message: --- [S32::Exception] Add X::Syntax::AddCategorial::MissingSeparator

[perl6/specs] e15acb: Re-purpose the method ^foo(...) { ... } syntax.

2014-12-16 Thread GitHub
: M S12-objects.pod Log Message: --- Re-purpose the method ^foo(...) { ... } syntax. The existing design of it was out of line with the way Perl 6 evolved since then, and also not especially useful. This takes the syntax and enables its use for per-type meta-behavior specialization

[perl6/specs] de5fbb: [S32::Exception] Add X::Syntax::Term::MissingIniti...

2014-10-21 Thread GitHub
-library/Exception.pod Log Message: --- [S32::Exception] Add X::Syntax::Term::MissingInitializer

[perl6/specs] b89831: fix minor syntax error

2014-10-02 Thread GitHub
-setting-library/IO.pod Log Message: --- fix minor syntax error

[perl6/specs] df6da8: fixing syntax links line 385

2014-09-08 Thread GitHub
-glossary.pod Log Message: --- fixing syntax links line 385

[perl6/specs] dc55e2: Fix syntax of example <* < foo bar baz > >

2014-05-04 Thread GitHub
-regex.pod Log Message: --- Fix syntax of example <* < foo bar baz > >

[perl6/specs] 22231b: [S05] Expand information on <|rule> syntax.

2014-03-10 Thread GitHub
Log Message: --- [S05] Expand information on <|rule> syntax. Wouldn't want someone thinking that was an exhaustive list, now would we? :)

[perl6/specs] c01155: [S32] Use modern return type syntax

2013-11-05 Thread GitHub
-library/Callable.pod M S32-setting-library/Rules.pod M S32-setting-library/Str.pod Log Message: --- [S32] Use modern return type syntax

[perl6/specs] bbbdb7: [S32::Exception] X::Syntax::NegatedPair should rep...

2012-08-02 Thread GitHub
-setting-library/Exception.pod Log Message: --- [S32::Exception] X::Syntax::NegatedPair should report the key

[perl6/specs] 524d26: [S09] fix coercion syntax usage, TimToady++

2012-02-22 Thread GitHub
-data.pod Log Message: --- [S09] fix coercion syntax usage, TimToady++

[perl6/specs] 8a9969: [S06] avoid indirect method call syntax

2011-12-27 Thread noreply
-routines.pod Log Message: --- [S06] avoid indirect method call syntax It is unrelated to the topic, and seem to confuse readers. Me too.

[perl6/specs] e638d2: Document possessive quantifier syntax

2011-09-08 Thread noreply
-regex.pod Log Message: --- Document possessive quantifier syntax

[perl6/specs] 15b1a4: [S32/Exceptions] add a few syntax errors

2011-05-08 Thread noreply
/Exception.pod Log Message: --- [S32/Exceptions] add a few syntax errors

[perl6/specs] 81058c: define extensible boundary syntax

2011-02-09 Thread noreply
Message: --- define extensible boundary syntax The Unicode folks seem to want an extensible boundary syntax with \b, but we've abandoned \b for boundary, so it's now <|x> for various values of x. (And is the negation, so no need for <|X>.) is now <|w>.

r31624 -[S05] redirect to new char class syntax with patch from cosimo++

2010-07-11 Thread pugs-commits
Author: lwall Date: 2010-07-11 18:53:20 +0200 (Sun, 11 Jul 2010) New Revision: 31624 Modified: docs/Perl6/Spec/S05-regex.pod Log: [S05] redirect to new char class syntax with patch from cosimo++ Modified: docs/Perl6/Spec/S05-regex.pod

r30996 -[S32/IO] changed a number of instances of C++-style constructor syntax

2010-05-30 Thread pugs-commits
Author: masak Date: 2010-05-30 16:14:21 +0200 (Sun, 30 May 2010) New Revision: 30996 Modified: docs/Perl6/Spec/S32-setting-library/IO.pod Log: [S32/IO] changed a number of instances of C++-style constructor syntax Modified: docs/Perl6/Spec/S32-setting-library/IO.pod

r30722 -[S06] specify syntax for strongly-typed closure variables (reprise)

2010-05-19 Thread pugs-commits
Author: diakopter Date: 2010-05-20 01:44:05 +0200 (Thu, 20 May 2010) New Revision: 30722 Modified: docs/Perl6/Spec/S06-routines.pod Log: [S06] specify syntax for strongly-typed closure variables (reprise) Modified: docs/Perl6/Spec/S06-routines.pod

r30721 -[S06] specify syntax for strongly-typed closure variables

2010-05-19 Thread pugs-commits
Author: diakopter Date: 2010-05-20 01:41:19 +0200 (Thu, 20 May 2010) New Revision: 30721 Modified: docs/Perl6/Spec/S06-routines.pod Log: [S06] specify syntax for strongly-typed closure variables Modified: docs/Perl6/Spec/S06-routines.pod

Re: Spec: Syntax Suggestion

2010-02-14 Thread Larry Wall
On Sat, Feb 13, 2010 at 11:59:10AM -0800, Mubed wrote: : Sorry, if it is the wrong group to post this. I'd like to know, if it : is possible to make some suggestions to the Perl6 syntax. This is certainly the right place, and we try to give all ideas a fair hearing. Though given that we&#x

Spec: Syntax Suggestion

2010-02-14 Thread Mubed
Sorry, if it is the wrong group to post this. I'd like to know, if it is possible to make some suggestions to the Perl6 syntax.

Re: [pugs-commits] r27404 - t/syntax

2009-07-05 Thread Moritz Lenz
pugs-comm...@feather.perl6.nl wrote: > Author: kyle > Date: 2009-07-04 19:26:48 +0200 (Sat, 04 Jul 2009) > New Revision: 27404 > > Modified: >t/syntax/hyper_latin1.t > Log: > [t] Further mutated t/syntax/hyper_latin1.t > > Mod

Re: routine arrow syntax and return/of types

2009-03-22 Thread Jon Lang
Darren Duncan wrote: > Jon Lang wrote: >> Spitballing here: you drew an analogy to the feed operators.  I wonder >> if that analogy could be taken further: use --> and <-- outside of >> signatures as feed operators - but instead of feeding arrays back and >> forth, have them feed capture objects an

Re: routine arrow syntax and return/of types

2009-03-20 Thread Darren Duncan
Jon Lang wrote: And AFAIK the token --> is used in exactly one place in perl 6: within signature syntax, to mark the transition from the parameter signature to the "return type" signature. As with Darren, I don't see why this would be a big problem. The biggest stumbling bloc

Re: routine arrow syntax and return/of types

2009-03-19 Thread Jon Lang
rstand that but I don't know if its a big problem. > > AFAIK the token <-- isn't used anywhere yet in Perl 6 and so its presence > inside a parameterized list would be unambiguous once you've read up to it. And AFAIK the token --> is used in exactly one place in perl 6

Re: routine arrow syntax and return/of types

2009-03-19 Thread Darren Duncan
Larry Wall wrote: On Thu, Mar 19, 2009 at 02:18:35PM -0700, Darren Duncan wrote: Yes, --> is the "of" type, not the "as" type, as S02 I think says. Good to know. Second, since the "sub NAME (PARAMS --> RETTYPE) {...}" form looks nice visually, I would like to request a variant of that form,

Re: routine arrow syntax and return/of types

2009-03-19 Thread Larry Wall
On Thu, Mar 19, 2009 at 02:18:35PM -0700, Darren Duncan wrote: > I have a question and a request. > > In http://perlcabal.org/syn/S06.html#Named_subroutines it says: > > The general syntax for named subroutines is any of: > > my RETTYPE sub NAME ( PARAMS ) TRAITS {.

routine arrow syntax and return/of types

2009-03-19 Thread Darren Duncan
I have a question and a request. In http://perlcabal.org/syn/S06.html#Named_subroutines it says: The general syntax for named subroutines is any of: my RETTYPE sub NAME ( PARAMS ) TRAITS {...}# lexical only our RETTYPE sub NAME ( PARAMS ) TRAITS {...}# also package-scoped

Re: [perl #61846] [spec] Is this syntax OK: @a[0..**-1]

2008-12-30 Thread Larry Wall
On Tue, Dec 30, 2008 at 09:52:10AM -0800, Patrick R. Michaud via RT wrote: : On Tue Dec 30 01:47:47 2008, masak wrote: : > Just wondering whether the following syntax, currently accepted by : > Rakudo r34628, is legal Perl 6: : > : > $ perl6 -e 'say ("a".."c")

[perl #61846] [spec] Is this syntax OK: @a[0..**-1]

2008-12-30 Thread Patrick R. Michaud via RT
On Tue Dec 30 01:47:47 2008, masak wrote: > Just wondering whether the following syntax, currently accepted by > Rakudo r34628, is legal Perl 6: > > $ perl6 -e 'say ("a".."c").list[0..**-1]' > abc As of r34652, this now produces an empty list (which

Re: syntax question: "method close is export ()"

2008-08-06 Thread Larry Wall
e of things: sub infix: is equiv(&infix:) is sig(:($x, $y, :$z = $x foo $y bar 1)) {...} sub infix: ($x, $y, :$z = infix:($x, $y) bar 1) is equiv(&infix:) {...} but I'm inclined to simplify in the direction of saying the signature

Re: syntax question: "method close is export ()"

2008-08-05 Thread Audrey Tang
John M. Dlugosz 提到: Does that mean that traits can come before the signature? Or should it be corrected to method close () is export { ... } It's a simple typo. Thanks, fixed in r14572. Cheers, Audrey

syntax question: "method close is export ()"

2008-08-05 Thread John M. Dlugosz
Does that mean that traits can come before the signature? Or should it be corrected to method close () is export { ... } ?

Re: Project idea: Perl 6 syntax hilighting with STD.pm

2008-07-29 Thread Moritz Lenz
John M. Dlugosz wrote: > Does that mean there is a tool I can use to apply STD.pm to syntax-check > my examples or ask questions of it? Can you point to that? in the pugs repository: $ cd src/perl6 $ make $ ./tryfile $filename That assumes a perl 5.10 in /usr/local/bin/perl HTH,

Re: Project idea: Perl 6 syntax hilighting with STD.pm

2008-07-29 Thread John M. Dlugosz
Does that mean there is a tool I can use to apply STD.pm to syntax-check my examples or ask questions of it? Can you point to that? --John Moritz Lenz wrote: Since now STD.pm parses most Perl 6 code now, and spits out a parse tree in YAML, a brave soul might want to write a syntax hilighter

Re: Help understanding syntax in S06 "Pairs as lvalues"

2008-04-17 Thread Larry Wall
something only a crazy person would want to do, but it seems to fall out of the current syntax, and we tend not to prevent things just to be mean. : "Alternately, the my declarator can also force treatment of its argument as a signature." : : That would be : : my (:who($name), :why($re

Help understanding syntax in S06 "Pairs as lvalues"

2008-04-13 Thread John M. Dlugosz
:(:who($name), :why($reason)) := (why => $because, who => "me"); What do the symbols $name and $reason refer to? Are they names already in scope? "Alternately, the my declarator can also force treatment of its argument as a signature." That would be my (:who($name), :why($reason)) := (why =

Help understanding syntax in S06 "Unpacking tree node parameters"

2008-04-12 Thread John M. Dlugosz
multi traverse ( NAry $top ( :kids [$eldest, [EMAIL PROTECTED] ) ) { The inner signature is :( :kids [$eldest, [EMAIL PROTECTED] ) This starts out like a named-only parameter, :xx or :xx($yy) but then there is a space and an array. :xx @yy I don't follow that.

Re: syntax question on parameter lists

2008-04-10 Thread Larry Wall
On Thu, Apr 10, 2008 at 11:36:09PM -0500, Patrick R. Michaud wrote: : Yes, but where does resolve down to a typename? : My reading of STD.pm is that becomes a : (since it's not a 'where' clause in this case), and is currently : one of , , or . Value is supposed to include fulltypename, but I

Re: syntax question on parameter lists

2008-04-10 Thread Patrick R. Michaud
On Thu, Apr 10, 2008 at 09:18:38PM -0700, Larry Wall wrote: > On Fri, Apr 11, 2008 at 03:26:02AM -, John M. Dlugosz wrote: > : S06 shows how to define named-only parameters, "marked with a prefix :". > But no example shows anything more than a bare parameter name. No type is > ever given! >

Re: syntax question on parameter lists

2008-04-10 Thread Larry Wall
On Fri, Apr 11, 2008 at 03:26:02AM -, John M. Dlugosz wrote: : S06 shows how to define named-only parameters, "marked with a prefix :". But no example shows anything more than a bare parameter name. No type is ever given! : : Looking through my copy of STD.pm, I'm baffled, as it seems not

syntax question on parameter lists

2008-04-10 Thread John M. Dlugosz
S06 shows how to define named-only parameters, "marked with a prefix :". But no example shows anything more than a bare parameter name. No type is ever given! Looking through my copy of STD.pm, I'm baffled, as it seems not to take types in parameter lists at all. So, is it method bytes ( E

Re: Regex syntax

2008-03-18 Thread Jon Lang
well enforce that, and > drop the <...> around method/regex calls: > > regex foo { > 'literal' subregex > } > > This way we'll approximate "normal" Perl 6 syntax, and maybe even improve > huffman coding. > > I guess such a syntax

Regex syntax

2008-03-13 Thread Moritz Lenz
I have two questions/suggestions regarding regex syntax: 1) The :ii modifier is influenced by :sigspace modifier. IMHO this is ugly, because the matching part and the replacement part of a regex should be as orthogonal as possible. Therefore I'd like a different syntax for :ii :sigspace,

:($obj) syntax (was Re: [svn:perl6-synopsis] r14479 - doc/trunk/design/syn)

2008-01-05 Thread Trey Harris
und to its value, and bind the Pair to $cap (causing $obj to be bound to the value portion of $cap)". But I was told on #perl6 that :($obj) refers to a Signature. If so, I think the relevant passage in S02 for deciphering the syntax is: A signature object (Signature) may be created wi

Re: P5's s[pat][repl] syntax is dead

2006-10-11 Thread Larry Wall
On Wed, Oct 11, 2006 at 10:32:13AM -0400, Aaron Sherman wrote: : @larry[0] wrote: : : >Log: : >P5's s[pat][repl] syntax is dead, now use s[pat] = "repl" : : Wow, I really missed this one! That's a pretty big thing to get my head : around. Are embedded closures in the s

P5's s[pat][repl] syntax is dead

2006-10-11 Thread Aaron Sherman
@larry[0] wrote: Log: P5's s[pat][repl] syntax is dead, now use s[pat] = "repl" Wow, I really missed this one! That's a pretty big thing to get my head around. Are embedded closures in the string handled correctly so that: s:g[\W] = qq{\\{$/}}; Will do what I

Re: Legacy Dereferencing Syntax Used in S05

2006-08-01 Thread Larry Wall
On Tue, Aug 01, 2006 at 11:17:21PM +0800, Agent Zhang wrote: : Hi, all~~ : : S05 makes widely use of the syntax @{ $capture } and %{ $capture } : while other synopses remarkably don't. : : According to S02, {...} should normall be a closure or a hash : subscript and S02 uses the s

Legacy Dereferencing Syntax Used in S05

2006-08-01 Thread Agent Zhang
Hi, all~~ S05 makes widely use of the syntax @{ $capture } and %{ $capture } while other synopses remarkably don't. According to S02, {...} should normall be a closure or a hash subscript and S02 uses the syntax @( $arrayref ) and %( $hashref ) consistently. Is S05 simply out of sync or i

Re: Synchronized / Thread syntax in Perl 6

2006-06-03 Thread Paul Hodges
--- Larry Wall <[EMAIL PROTECTED]> wrote: > On Sat, Jun 03, 2006 at 03:51:45PM -0700, Paul Hodges wrote: > : { no threads; > :print @_.»(); > : } > > It seems a bit odd to use a construct for its syntactic sugar value > but take away its semantics... > > If you just need ordering, this (o

Re: Synchronized / Thread syntax in Perl 6

2006-06-03 Thread Larry Wall
On Sat, Jun 03, 2006 at 03:51:45PM -0700, Paul Hodges wrote: : --- Ashley Winters <[EMAIL PROTECTED]> wrote: : > On 6/2/06, Paul Hodges <[EMAIL PROTECTED]> wrote: : > > : > > my @answer = map { async { &_() } } @jobs; : > : > That still seems too explicit. I thought we had hyperoperators to : > i

Re: Synchronized / Thread syntax in Perl 6

2006-06-03 Thread Paul Hodges
--- Ashley Winters <[EMAIL PROTECTED]> wrote: > On 6/2/06, Paul Hodges <[EMAIL PROTECTED]> wrote: > > > > my @answer = map { async { &_() } } @jobs; > > That still seems too explicit. I thought we had hyperoperators to > implictly parallelize for us: > > my @answer = @jobs.»(); > > Which would

Re: Synchronized / Thread syntax in Perl 6

2006-06-03 Thread Ashley Winters
On 6/2/06, Paul Hodges <[EMAIL PROTECTED]> wrote: Though if that works, you could squish this example even more, to class QueueRunner { our sub process_queue(Code @jobs_in) { map { async { &_() } } @jobs_in; } }# end QueueRunner # Elsewhere... my @answer = QueueRunner.process

RE: Synchronized / Thread syntax in Perl 6

2006-06-02 Thread Paul Hodges
--- John Drago <[EMAIL PROTECTED]> wrote: . . . > > class QueueRunner { > >our sub process_queue(Code @jobs_in) { > > my @ans is serial; > > @ans.push map { async { &_() } } @jobs_in; > > @ans; > >} > > } > > my @answer = QueueRunner.process_job_queue( @jobs ); > > Actual

RE: Synchronized / Thread syntax in Perl 6

2006-06-02 Thread John Drago
> > > > > > or > > > > > > my $age = 27 but NOWAIT; > > > > > > or > > > > > > TakesForever( $age but NOWAIT ); > > > > > > (or whatever) then I'd say it should just fail. I mean, isn't that > > ki

RE: Synchronized / Thread syntax in Perl 6

2006-06-02 Thread Paul Hodges
erial ) is async but NOWAIT > { > >... > > } > > > > or > > > > my $age = 27 but NOWAIT; > > > > or > > > > TakesForever( $age but NOWAIT ); > > > > (or whatever) then I'd say it should just fail. I m

RE: Synchronized / Thread syntax in Perl 6

2006-06-02 Thread John Drago
t that way if the default is > WAIT (which seems the smart default to me), the thread waits until > TakesForever() releases the resource. > > if we declare > > our method TakesForever ( int $num is serial ) is async but NOWAIT { >... > } > > or > > my

RE: Synchronized / Thread syntax in Perl 6

2006-05-31 Thread Paul Hodges
--- John Drago <[EMAIL PROTECTED]> wrote: > James Mastros wrote: > > I don't like the name synchronized -- it implies that multiple > > things are happening at the same time, as in synchronized swiming, > > which is exactly the opposite of what should be implied. > > "Serialized" would be a nice n

RE: Synchronized / Thread syntax in Perl 6

2006-05-31 Thread John Drago
in Smith [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 31, 2006 9:43 AM > To: perl6-language@perl.org > Subject: Re: Synchronized / Thread syntax in Perl 6 > > On Tue, May 30, 2006 at 03:41:06PM -0600, John Drago wrote: > > class Foo is synchronized { > > ... &

RE: Synchronized / Thread syntax in Perl 6

2006-05-31 Thread John Drago
James Mastros wrote: > I don't like the name synchronized -- it implies that multiple things are > happening at the same time, as in synchronized swiming, which is exactly the > opposite of what should be implied. "Serialized" would be a nice name, > except it implies serializing to a serial form

Re: Synchronized / Thread syntax in Perl 6

2006-05-31 Thread Benjamin Smith
On Tue, May 30, 2006 at 03:41:06PM -0600, John Drago wrote: > class Foo is synchronized { > ... > } > > our method Bar is synchronized { > ... > } > > class Baz { > has $.Bux is synchronized; > } To everyone participating in this thread: There has already been a draft spec for concurrency

Re: Synchronized / Thread syntax in Perl 6

2006-05-31 Thread Paul Hodges
le Groups interface a few weeks ago, but I'm > not sure if it made it here. > I am asking again in case the question never made it onto the list. > > Has the syntax for synchronized/threaded @things been worked out? > For example: > > class Foo is synchronized { > ... &

Re: Synchronized / Thread syntax in Perl 6

2006-05-31 Thread Sage La Torra
We could always go with the Windows API "Critical Section" name. Locked is probably as good a descriptor, and avoids anything associated with Windows. Sage James Mastros skribis 2006-05-31 12:03 (+0100): > I don't like the name synchronized -- it implies that multiple things are > happening at

Re: Synchronized / Thread syntax in Perl 6

2006-05-31 Thread Juerd
James Mastros skribis 2006-05-31 12:03 (+0100): > I don't like the name synchronized -- it implies that multiple things are > happening at the same time, as in synchronized swiming, which is exactly the > opposite of what should be implied. "Serialized" would be a nice name, > except it implies se

Re: Synchronized / Thread syntax in Perl 6

2006-05-31 Thread James Mastros
On Tue, May 30, 2006 at 03:41:06PM -0600, John Drago wrote: > I asked this via the Google Groups interface a few weeks ago, but I'm not > sure if it made it here. > I am asking again in case the question never made it onto the list. > > Has the syntax for synchronized/t

Synchronized / Thread syntax in Perl 6

2006-05-31 Thread John Drago
I asked this via the Google Groups interface a few weeks ago, but I'm not sure if it made it here. I am asking again in case the question never made it onto the list. Has the syntax for synchronized/threaded @things been worked out? For example: class Foo is synchronized { ... } our m

Re: :syntax

2005-11-23 Thread Luke Palmer
On 11/23/05, Damian Conway <[EMAIL PROTECTED]> wrote: > Luke wrote: > > > On 11/22/05, Damian Conway <[EMAIL PROTECTED]> wrote: > > > >> :syntax > >> :syntax > >> :syntax > >> :syntax > >> :syntax >

Re: :syntax

2005-11-23 Thread Damian Conway
Luke wrote: On 11/22/05, Damian Conway <[EMAIL PROTECTED]> wrote: :syntax :syntax :syntax :syntax :syntax :syntax Aren't we providing an interface to define your own regex modifiers? Sure. But it'd lead to much less namespace pollution

Re: :syntax (was: \x{123a 123b 123c})

2005-11-23 Thread Luke Palmer
On 11/22/05, Damian Conway <[EMAIL PROTECTED]> wrote: > :syntax > :syntax > :syntax > :syntax > :syntax > :syntax Aren't we providing an interface to define your own regex modifiers? All of these can easily be mapped into Perl 6 pat

:syntax (was: \x{123a 123b 123c})

2005-11-23 Thread Damian Conway
Larry wrote: > But the language in the following lexical scope is a constant, so what can > :syntax($foo) possibly mean? [Wait, this is Damian I'm talking to.] > Nevermind, don't answer that... Too late! ;-) Regex syntaxes already are a twisty maze of variations, mostly

Re: syntax for accessing multiple versions of a module

2005-11-22 Thread Nicholas Clark
On Tue, Oct 18, 2005 at 07:38:19PM -0400, Stevan Little wrote: > I have been meaning to do some kind of p5 prototype of this, I can > push it up the TODO list if it would help you. As you can probably infer from the amount of time that it has taken for me to realise that I've failed to reply to

Re: Classification syntax [Was: Renaming grep]

2005-11-19 Thread Yuval Kogman
On Fri, Nov 18, 2005 at 11:36:33 -0800, Larry Wall wrote: > If we had some kind of partitioning operator, it'd probably be generalized > to sorting into bins by number, where 0 and 1 are degenerate cases for > booleans. But since we'd almost certainly make the general form > > (@bin0, @bin1,

Re: Classification syntax [Was: Renaming grep]

2005-11-18 Thread Larry Wall
On Fri, Nov 18, 2005 at 01:41:33PM -0800, Brent 'Dax' Royal-Gordon wrote: : Larry Wall <[EMAIL PROTECTED]> wrote: : > The name is relatively unimportant in the overall scheme of things. : > I'm more worried about the fact that it's difficult to partition a : > list into multiple lists in one pass w

Re: Classification syntax [Was: Renaming grep]

2005-11-18 Thread Flavio S. Glock
gt; > list into multiple lists in one pass without declaring temp arrays. > > Didn't the list agree long ago on a `part` builtin? I certainly wrote > List::Part based on that discussion... In E06: ($cats, $chattels) = part &is_feline, @animals; How about a "sw

Re: Classification syntax [Was: Renaming grep]

2005-11-18 Thread Brent 'Dax' Royal-Gordon
Larry Wall <[EMAIL PROTECTED]> wrote: > The name is relatively unimportant in the overall scheme of things. > I'm more worried about the fact that it's difficult to partition a > list into multiple lists in one pass without declaring temp arrays. Didn't the list agree long ago on a `part` builtin?

Re: Classification syntax [Was: Renaming grep]

2005-11-18 Thread Flavio S. Glock
Larry Wall wrote: > If we had some kind of partitioning operator, it'd probably be generalized > to sorting into bins by number, where 0 and 1 are degenerate cases for > booleans. Cool! This doesn't solve the general case, but how about a left-side zip: zip( @keys, @values ) = %hash; zip( @e

Re: Classification syntax [Was: Renaming grep]

2005-11-18 Thread Juerd
Larry Wall skribis 2005-11-18 11:36 (-0800): > In Perl 5, to set a slice, you have to write > %hash{ @keys } = @values; "@"... :) > whereas in Perl 6, it'd be nice to be able to say that with all > the keys and values on the right side somehow. Shouldn't a simple %hash = @keys Y @values

Classification syntax [Was: Renaming grep]

2005-11-18 Thread Larry Wall
LIST; additional(kv(%bins)) = labelkv { calc_str($_) } LIST; clobber(kv(%bins)) = labelkv { calc_str($_) } LIST; or whatever. But it'd be even nicer if we could avoid the pseudofunction syntax as well. It does seem rather nice to attach the clobber/nonclobber distinction to the ass

Re: syntax-variants, RPN (was: Re: $_ defaulting for mutating ops)

2005-11-03 Thread Rob Kinyon
On 11/3/05, Michele Dondi <[EMAIL PROTECTED]> wrote: > On Wed, 2 Nov 2005, Ruud H.G. van Tol wrote: > > >> http://www.nntp.perl.org/group/perl.perl6.language/17556 > > > > I understand that Perl6 allows blocks with changed/enhanced syntax, so > > it is or wi

Re: syntax-variants, RPN (was: Re: $_ defaulting for mutating ops)

2005-11-03 Thread Michele Dondi
On Wed, 2 Nov 2005, Ruud H.G. van Tol wrote: http://www.nntp.perl.org/group/perl.perl6.language/17556 I understand that Perl6 allows blocks with changed/enhanced syntax, so it is or will become possible (to add it) as if it was in the core language. Do I understand that right? Something as

syntax-variants, RPN (was: Re: $_ defaulting for mutating ops)

2005-11-02 Thread Ruud H.G. van Tol
robably unreasonable fashion: > > http://www.nntp.perl.org/group/perl.perl6.language/17556 I understand that Perl6 allows blocks with changed/enhanced syntax, so it is or will become possible (to add it) as if it was in the core language. Do I understand that right? Something as simple as a 'us

Re: $1 change issues [was Re: syntax for accessing multiple versions of a module]

2005-10-26 Thread chromatic
On Thu, 2005-10-20 at 17:12 -0700, Nate Wiger wrote: > If Perl 6 is going to be successful, this means it must change the > fewest key things with the most benefits. I think there's an assumption here that not only do I not hold but I do not even understand. Suppose that I am a game developer wi

Fwd: $1 change issues [was Re: syntax for accessing multiple versions of a module]

2005-10-21 Thread Rob Kinyon
Feh - I really need to get on gmail's case for providing a keystroke for "Reply to All". Rob -- Forwarded message -- From: Nate Wiger <[EMAIL PROTECTED]> Date: Oct 21, 2005 2:38 PM Subject: Re: $1 change issues [was Re: syntax for accessing multiple versions

Re: $1 change issues [was Re: syntax for accessing multiple versions of a module]

2005-10-21 Thread Mark Reed
On 2005-10-21 1:54 PM, "Nate Wiger" <[EMAIL PROTECTED]> wrote: > BTW, C and PHP both use -> "still". C++ is probably more relevant than C, but since it inherited the syntax, same diff. But in their case the underlying form is still a dot; A->B is just syntacti

Re: $1 change issues [was Re: syntax for accessing multiple versions of a module]

2005-10-21 Thread Nate Wiger
se -> "still". It sounds like you want a backwards-compatible change. From the outset we knew that this wasn't our goal. Perl 5 is full to the brim with syntax, and there's pretty much nowhere we can add anything, and there's tons of cruft that we had to get rid of.

Re: syntax for accessing multiple versions of a module

2005-10-21 Thread Patrick R. Michaud
On Thu, Oct 20, 2005 at 09:14:15PM -0400, John Adams wrote: > From: Luke Palmer <[EMAIL PROTECTED]> > > > But $1 in Perl 5 wasn't the same as $1 in a shell script. > > I'm all for breaking things that need breaking, which is why I > keep my mouth shut most of the time--either I see the reason or

Re: syntax for accessing multiple versions of a module

2005-10-21 Thread John Adams
-Original Message- From: "Patrick R. Michaud" <[EMAIL PROTECTED]> >I can state the compelling reason for this one -- it's way too confusing when $1, $2, $3, etc. correspond to $/[0], $/[1], $/[2], etc. >In many discussions of capturing semantics earlier in the year, nearly everyone usin

Re: $1 change issues [was Re: syntax for accessing multiple versions of a module]

2005-10-21 Thread Michele Dondi
On Thu, 20 Oct 2005, Luke Palmer wrote: Huh? So you want to go back to Perl 5's arrow? *Anybody* coming to Perl 6 from some non-Perl 5 language is going to be more comfortable with dot. (Also, I did like the arrow notation, but) how cool would be @cool=grep ->cool, @misc; # if compared to

Re: $1 change issues [was Re: syntax for accessing multiple versions of a module]

2005-10-21 Thread Luke Palmer
On 10/21/05, Luke Palmer <[EMAIL PROTECTED]> wrote: > On 10/21/05, Benjamin Smith <[EMAIL PROTECTED]> wrote: > > On Thu, Oct 20, 2005 at 06:39:34PM -0600, Luke Palmer wrote: > > > Huh? So you want to go back to Perl 5's arrow? *Anybody* coming to > > > Perl 6 from some non-Perl 5 language is goi

Re: $1 change issues [was Re: syntax for accessing multiple versions of a module]

2005-10-21 Thread Luke Palmer
On 10/21/05, Benjamin Smith <[EMAIL PROTECTED]> wrote: > On Thu, Oct 20, 2005 at 06:39:34PM -0600, Luke Palmer wrote: > > Huh? So you want to go back to Perl 5's arrow? *Anybody* coming to > > Perl 6 from some non-Perl 5 language is going to be more comfortable > > with dot. > > Unless it was Sm

Re: $1 change issues [was Re: syntax for accessing multiple versions of a module]

2005-10-21 Thread Benjamin Smith
On Thu, Oct 20, 2005 at 06:39:34PM -0600, Luke Palmer wrote: > On 10/20/05, Nate Wiger <[EMAIL PROTECTED]> wrote: > > Luke Palmer wrote: > > > The fact that we use . instead of -> (like every other language on > > > the planet)? > > > > You're using my argument for me - thanks. See above. > > Huh?

Re: $1 change issues [was Re: syntax for accessing multiple versions of a module]

2005-10-20 Thread Jonathan Scott Duff
On Thu, Oct 20, 2005 at 05:12:32PM -0700, Nate Wiger wrote: > Every regex engine in every language uses $1 or \1. This includes Java, > JavaScript, C, PHP, Python, awk, sed, the GNU regex libs, etc. Somehow > other languages seem ok with this, because it's a widely-used convention. This quibbling

Re: syntax for accessing multiple versions of a module

2005-10-20 Thread John Adams
From: Luke Palmer <[EMAIL PROTECTED]> > But $1 in Perl 5 wasn't the same as $1 in a shell script. Sure--but that's not what I said. I'm all for breaking things that need breaking, which is why I keep my mouth shut most of the time--either I see the reason or I suspect (that is, take on faith,

Re: syntax for accessing multiple versions of a module

2005-10-20 Thread Luke Palmer
On 10/20/05, John Adams <[EMAIL PROTECTED]> wrote: > Then the target audience is specifically not people coming from a > shell scripting background, who are quite used to the idea that $0 is > different from $1 in a way in which $1 is not different from $2. > Correct? But $1 in Perl 5 wasn't the s

Re: $1 change issues [was Re: syntax for accessing multiple versions of a module]

2005-10-20 Thread Luke Palmer
alot of programmers. Yes, yes. You seem to be speaking for a lot of programmers, too. We have to, for if we didn't try, we probably wouldn't be good language designers. > > The reason I'm dismissing you as a "complainer" is because of your > > broad field of attac

$1 change issues [was Re: syntax for accessing multiple versions of a module]

2005-10-20 Thread Nate Wiger
quot;complainer" is because of your broad field of attack. You say that "the method syntax is starting to make [your] head spin". Well, what about it is making your head spin? The method: infix:<+> stuff makes no sense to me, but I don't want to dwell on it. The fact

Re: syntax for accessing multiple versions of a module

2005-10-20 Thread John Adams
-Original Message- From: Luke Palmer <[EMAIL PROTECTED]> > Our target audience is only somewhat from a Perl 5 background. People from Java, from Python, from C, and even just starting to program will be learning Perl 6, and they would rather have all the language be zero-based, rather tha

  1   2   3   4   5   6   7   >