From help-octave-request at bevo dot che dot wisc dot edu Thu Jan 27 19:42:07 2000 Subject: Re: Suggestion: add do-enddo(condition) From: Joao Cardoso To: help-octave at bevo dot che dot wisc dot edu Date: Fri, 28 Jan 2000 01:42:47 +0000 Johan Kullstam wrote: > > "John W. Eaton" writes: > > > On 27-Jan-2000, John W. Eaton 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 > [kullstam at ne dot mediaone dot net] > 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 -----------------------------------------------------------------------