From: Clemens Hintze Date: 2000-01-12T08:47:51+01:00 Subject: [ruby-talk:01119] Re: The value of while... Yukihiro Matsumoto writes: > > In message "[ruby-talk:01114] Re: The value of while..." > on 00/01/12, Dave Thomas writes: > [...] > Hmm, but it's a attribute of the statement which cannot be treated by ^^^^^^^^^ Perhaps that is the reason of confusion, IMHO. 'while' should be considered as statement, not as expression! Dave is right here, to be orthogonal 'while' should also return a value as every expression do! I also do not like the idea of a special 'void' value for just that case! But if 'while' would be considered as statement, it would not be necessary to allow it to return a value! Perhaps simply change the documentation and say 'statement' where there was 'expression' before? ;-) [...] > > `break' returning is as interesting as `break' with the label to exit. > I couldn't decide. What about to introduce both? :-)))) If you cannot decide ... take both ;-)))) > > matz. > \cle -- Clemens Hintze mailto: c.hintze@gmx.net