Re: The C Comma

2003-11-25 Thread Jonathan Scott Duff
{ ... } # maybe? but that's probably more obscure than the comma. Okay, so I don't have any good ideas either, but I like also if we're getting rid of the C comma. -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]

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 spotted

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 conjunction you

Re: The C Comma

2003-11-25 Thread Luke Palmer
worse, though. Hmm. Why not just explicitly allow semicolon when surrounded by parens? while ($n++; $foo $bar) {...} Well, because the intent of the original proposal was to fatten up the C comma to make it explicit, easy to see, and clearly unambiguous. A semicolon does none

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 a mandatory {}

Re: The C Comma

2003-11-24 Thread Michael G Schwern
On Mon, Nov 24, 2003 at 05:00:38PM -0700, Luke Palmer wrote: The C comma has always bugged me, but its function is indeed useful (many times I use Cand in its place, if I know the left side will always be true). I don't know whether it's staying or not (I've heard rumors of both), but I'd

Re: The C Comma

2003-11-24 Thread Jonathan Worthington
Honestly you guys, I'm not trolling. I'm just getting a lot of ideas recently. :-) Honestly, I'm not an expert on Perl 6 syntax. (And I actually am being honest... ;-) But I'll throw in my 2 cents anyway. :-) snipah This word: Cthen. So, from a recent script of mine: my $n;