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: Johan Kullstam
Subject: Re: Suggestion: add do-enddo(condition)
Date: 27 Jan 2000 19:24:04 -0500
User-agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.4

"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,
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]