help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suggestion: add do-enddo(condition)


From: Joao Cardoso
Subject: Re: Suggestion: add do-enddo(condition)
Date: Fri, 28 Jan 2000 01:42:47 +0000

Johan Kullstam wrote:
> 
> "John W. Eaton" <address@hidden> writes:
> 
> > On 27-Jan-2000, John W. Eaton <address@hidden> wrote:
> >
> > | So, we are left with two cases [...]
> >
> > |   do ... while (condition) [...]
> >
> > |   do ... until (condition) [...]
> >
> > | Implementing this would not be hard, if anyone is interested.
> >
> > OK, since it was relatively easy, I added this to the current
> > development sources (in the CVS tree now, expect it to show up in a
> > new bleeding-edge tar file soon).
> >
> > I'm still open to arguments for using `repeat' instead of `do'.
> 
> i prefer "repeat/until".  besides an irrational fondness for pascal, i
> think it makes for clearer code.
> 
> the octave parser can easily see the context of the word "while".
> but what about
> 1) the programmer/user,

yes, when browsing an unknown script and founding a 'while' one has to
check for both a 'do' (above) and a 'endwhile' (bellow). I 'vote' for
repeat/until or do/until :(

Joao

> 2) emacs (octave.el)?
> repeat/until would be easy and unabiguous for all of the code readers.
> 
> --
> J o h a n  K u l l s t a m
> address@hidden
> Don't Fear the Penguin!



-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.che.wisc.edu/octave/octave.html
How to fund new projects:  http://www.che.wisc.edu/octave/funding.html
Subscription information:  http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]