Re: This week's summary

2003-11-25 Thread Joseph Ryan
The Perl 6 Summarizer wrote: Do Steve Fink's debugging for him Steve Fink had a problem with some generated code throwing a segfault when it was run and, having hit the debugging wall himself, posted the code to the list and asked help. Leo tracked down the bug in Parrot and fixed it.

Re: The C Comma

2003-11-25 Thread John Macdonald
On Tue, Nov 25, 2003 at 04:48:08PM -0700, Luke Palmer wrote: > Austin Hastings writes: > > "C" style C loops then look like: > > > > for (($a = 0; $b = $num_elts); $a < @arry; ($a++; $b -= $offset)) {...} > > By which you mean > > loop ($a = 0; $b = $num_elts); $a < @arry; ($a++; $b -= $of

RE: The C Comma

2003-11-25 Thread Gordon Henriksen
Adam Turoff wrote: > Damian Conway wrote: > > > Perhaps this is yet another argument for insisting on: > > > > while do {$n++; $foo > $bar} > > > > instead. > > That looks like syntactic sugar for > > while (do) {$n++; $foo > $bar} do is not merely prototyped, but a builtin. With

Re: The C Comma

2003-11-25 Thread Luke Palmer
Austin Hastings writes: > > > > -Original Message- > > From: Adam Turoff [mailto:[EMAIL PROTECTED] > > On Tue, Nov 25, 2003 at 01:03:19PM +1100, Damian Conway wrote: > > > Schwern observed: > > > > Perhaps this is yet another argument for insisting on: > > > > > > while do {$n++; $foo

RE: The C Comma

2003-11-25 Thread Austin Hastings
> -Original Message- > From: Adam Turoff [mailto:[EMAIL PROTECTED] > On Tue, Nov 25, 2003 at 01:03:19PM +1100, Damian Conway wrote: > > Schwern observed: > > Perhaps this is yet another argument for insisting on: > > > > while do {$n++; $foo > $bar} > > > > instead. > > That looks li

Re: The C Comma

2003-11-25 Thread Jonathan Scott Duff
On Tue, Nov 25, 2003 at 01:46:39PM -0700, John Williams wrote: > On Mon, 24 Nov 2003, Jonathan Scott Duff wrote: > > or maybe throw some latin in there > > > > while $n++ et @accum < $total { ... } > > while $n++ cum @accum < $total { ... } # maybe? > > I think "ac" is the latin c

RE: The C Comma

2003-11-25 Thread Gordon Henriksen
Jonathan Scott Duff wrote: > or maybe throw some latin in there > > while $n++ et @accum < $total { ... } > while $n++ cum @accum < $total { ... } # maybe? "Et," of course, is unsuitable as a direct synonym for "and." I'm afraid that adding the second would cause Perl sourc

RE: The C Comma

2003-11-25 Thread Gordon Henriksen
Damian Conway wrote: > Micheal G. Schwern wrote: > > > It also doesn't convey anything about "evaluate the left > > hand side, ignore the results and evaluate the right". > > I think that's exactly what it conveys: > > The suspect drank half a dozen double whiskys then drove > into

Re: The C Comma

2003-11-25 Thread Adam Turoff
On Tue, Nov 25, 2003 at 01:03:19PM +1100, Damian Conway wrote: > Schwern observed: > >This may be a consequence of the example used > > > > while $n++ then $foo > $bar > > > >which I immediately associated with. > > > > if $n++ then $foo > $bar > > Yeah, I can certainly see that. > > Perh

Re: The C Comma

2003-11-25 Thread Mark J. Reed
On 2003-11-25 at 13:46:39, John Williams wrote: > On Mon, 24 Nov 2003, Jonathan Scott Duff wrote: > > or maybe throw some latin in there > > > > while $n++ et @accum < $total { ... } > > while $n++ cum @accum < $total { ... } # maybe? > > I think "ac" is the latin conjunction you

Re: The C Comma

2003-11-25 Thread John Williams
On Mon, 24 Nov 2003, Jonathan Scott Duff wrote: > or maybe throw some latin in there > > while $n++ et @accum < $total { ... } > while $n++ cum @accum < $total { ... } # maybe? I think "ac" is the latin conjunction you want. ac : conj. and, and also, and besides

Re: s/// in string context should return the string

2003-11-25 Thread Mark J. Reed
On 2003-11-25 at 19:53:09, Piers Cawley wrote: > Is that how Ruby does it then? =begin RubyDigression Ruby's String class has the methods sub (replace once) and gsub (replace all), which leave the invocant alone and return the result of the substitution, and sub! and gsub!, which modify the invoc

Re: s/// in string context should return the string

2003-11-25 Thread Piers Cawley
"Mark J. Reed" <[EMAIL PROTECTED]> writes: > On 2003-11-25 at 18:17:04, Piers Cawley wrote: >>aString replace: aPattern with: aString. >> >>aString replaceAll: aPattern with: aString. > > Stop! Stop that at once! No small talk; we're here for > serious discussions! > > :) > >> Except...

This week's summary

2003-11-25 Thread The Perl 6 Summarizer
The Perl 6 Summary for the fortnight ending 20031123 Right, hopefully things are back to normal(ish) after the disk crashes that rather spoilt the last summary. I've managed to fill in my mail archive too so this summary will cover the events of the last fortnight (that's two weeks

Re: Control flow variables

2003-11-25 Thread Luke Palmer
Piers Cawley writes: > Simon Cozens <[EMAIL PROTECTED]> writes: > > But it isn't, and I don't know why it isn't, and so we end up > > spending loads of time discussing things that can be punted out to > > modules. Designing Perl 6 is hard enough; let's not try to fill > > CP6AN at the same time. >

Re: s/// in string context should return the string

2003-11-25 Thread Mark J. Reed
On 2003-11-25 at 18:17:04, Piers Cawley wrote: >aString replace: aPattern with: aString. > >aString replaceAll: aPattern with: aString. Stop! Stop that at once! No small talk; we're here for serious discussions! :) > Except... the second argument isn't strictly a string because it's >

Re: s/// in string context should return the string

2003-11-25 Thread Piers Cawley
Jonathan Scott Duff <[EMAIL PROTECTED]> writes: > On Wed, Nov 19, 2003 at 08:23:30PM +, Smylers wrote: >> This, however, is irritating: >> >> my @new = map { s:e/$pattern/$replacement/; $_ } @old; >> >> I forget the C<; $_> far more often than I like to admit and end up with >> an array of

Re: Control flow variables

2003-11-25 Thread Piers Cawley
Simon Cozens <[EMAIL PROTECTED]> writes: > Luke Palmer: >> So modules that introduce new concepts into the language can add new >> syntax for them without working with (ugh) a source filter. And some of >> these new syntaxes in the "core" language will actually be in standard >> modules, if they'r

Re: The C Comma

2003-11-25 Thread Smylers
Damian Conway writes: > Perhaps this is yet another argument for insisting on: > > while do {$n++; $foo > $bar} > > instead. Yes please! Is anybody here a fan of the C comma? I don't think I've ever used it -- well, not intentionally, anyway -- but these are the situations where I've sp

Re: The C Comma

2003-11-25 Thread Jonathan Scott Duff
On Mon, Nov 24, 2003 at 04:40:23PM -0800, Michael G Schwern wrote: > On Mon, Nov 24, 2003 at 05:00:38PM -0700, Luke Palmer wrote: > > my $n; > > while $n++ then @accum < $total { > > ... > > } > > > > (Where I got in trouble for using C and never executing anything :-) > > > >

Re: What to do....

2003-11-25 Thread Piers Cawley
chromatic <[EMAIL PROTECTED]> writes: > Larry is shockingly good at that synthesis. (Just ask Piers Cawley; > he'll wax eloquent on the subject.) I'm not sure 'eloquent' is quite the adjective you were looking for. 'incoherent'?