Re: Labeled Loops?
Jeremy Cowgar wrote:
>
> c.k.lester wrote:
> >
> > > I think for consistency, for and while loops should be labeled the same.
> >
> > They're not consistent now... so what do you mean?
>
> The means of labeling and addressing them:
>
> }}}
<eucode>
> while 1 label "top" do
> for a = 1 to 10 label "mid" do
> end for
> end while
> </eucode>
{{{
>
> I do not think you should refer to the for loop as "a", I think when you want
> a label, you give it one for consistencies sake.
>
> --
> Jeremy Cowgar
> <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a>
Just to be clear, for labeled loops, I would hope that the programmer would
choose a better variable name than "a".
--
A complex system that works is invariably found to have evolved from a simple
system that works.
--John Gall's 15th law of Systemantics.
"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare
j.
|
Not Categorized, Please Help
|
|