Re: Last minute Beta suggestions
- Posted by jimcbrown (admin) Feb 03, 2010
- 1141 views
do .. while .. end do ; has an opposite meaning than ; loop do .. until .. end loop
We have
while X -- check for condition X **before** doing do ... end while
And we can have
do ... while Y -- check for condition Y **after** doing end do
All depends on conditions X and Y, see?
No.
do ... while Y -- check for condition Y **after** doing, if Y is false then exit loop end do
do ... until Y -- check for condition Y **after** doing, if Y is true then exit loop end do
And we do not need the new "loop" and "until" key words.
It is true that 'until X' could be replaced with 'while not(X)'
I don't see a problem with having the russian version use do .. until .. end do and the english version use loop do .. until .. end loop, however.
Hey, Jim, do you speak Russian?
Then, code has to be translated word-to-word to avoid any confusion.
With the correct documentation, I don't see this as being strictly necessary. Jumping from "loop do" to the Russian version of "do" and from "end loop" to the Russian for "end do" doesn't seem to be very difficult for a human being to do.
For an automated code parser (e.g. that translates code from russian to english and back), some extra work is required, but no more than the what would be required to change Eu's parser to use 'while' in the manner that you suggest.