From: Stephen Waits Date: 2005-12-13T15:48:36+09:00 Subject: Re: Idiom wanted: do-while Mark Ericson wrote: > >> Because it's hard for users to tell >> >> begin end while >> >> works differently from >> >> while >> > in what ways are they different? Any code examples to show the difference? Andy already answered, but I thought I'd take my shot at it too. begin end while is guaranteed to execute at least one time; whereas, while may never execute because it is exactly equivalent to while in the same way that if is equivalent to if The whole begin/end thing is definitely unnecessary, and can (and frequently does) become a source of confusion; it's a good thing that it's going away. The sooner the better. --Steve