Re: Loop exiting

2002-02-25 Thread Tanton Gibbs
gt; > for more than two or three values. Tanton - Original Message - From: "Austin Hastings" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 25, 2002 3:43 PM Subject: Re: Loop exiting > Currently, > > given $foo -> $bar > { > } &g

Re: Loop exiting

2002-02-25 Thread Austin Hastings
Currently, given $foo -> $bar { } can be thought of as foreach my $bar ($foo) { } Given the way people with expectations will interpret break, setting break === last seems like the right thing to do. =Austin --- Larry Wall <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] writes: > : --- Larry

Re: Loop exiting

2002-02-25 Thread Larry Wall
[EMAIL PROTECTED] writes: : --- Larry Wall <[EMAIL PROTECTED]> wrote: : > Simon Cozens writes: : > : Larry Wall: : > : > Not the same concept exactly. I think a C within a C : > loop : > : > would be the same as a C, not a C. : > : : > : Doesn't this break C and Shell resonance? : > : > We've

Re: Loop exiting

2002-02-25 Thread Austin Hastings
--- Larry Wall <[EMAIL PROTECTED]> wrote: > Simon Cozens writes: > : Larry Wall: > : > Not the same concept exactly. I think a C within a C > loop > : > would be the same as a C, not a C. > : > : Doesn't this break C and Shell resonance? > > We've done that before. :-) Umm, doesn't break t

Re: Loop exiting

2002-02-25 Thread Larry Wall
Simon Cozens writes: : Larry Wall: : > Not the same concept exactly. I think a C within a C loop : > would be the same as a C, not a C. : : Doesn't this break C and Shell resonance? We've done that before. :-) Larry

Re: Loop exiting

2002-02-25 Thread Simon Cozens
Larry Wall: > Not the same concept exactly. I think a C within a C loop > would be the same as a C, not a C. Doesn't this break C and Shell resonance? -- Also note that i knew _far_ more about the people that call address mungers names like 'lusers', 'egoists' or try to make luser giraffes.

Re: Loop exiting

2002-02-25 Thread Larry Wall
Simon Cozens writes: : given (...) { : ... : break; : ... : } : : for (...) { : ... : last; : ... : } : : Same concept, different keyword. Good idea? Not the same concept exactly. I think a C within a C loop would be the same as a C, not a C. So the argument s

Re: Loop exiting

2002-02-25 Thread Aaron Sherman
On Mon, 2002-02-25 at 10:47, Simon Cozens wrote: > given (...) { > ... > break; > for (...) { > ... > last; > Same concept, different keyword. Good idea? Larry pointed this out. His reasoning was that given isn't exactly a loop construct to the user. I know that I'm mor

Loop exiting

2002-02-25 Thread Simon Cozens
given (...) { ... break; ... } for (...) { ... last; ... } Same concept, different keyword. Good idea? -- lathos: nothing can make up for the middle class dinner party couple sex ARSE of Sade