From: matz@... (Yukihiro Matsumoto) Date: 2000-01-12T15:01:43+09:00 Subject: [ruby-talk:01112] Re: The value of while... Hi, In message "[ruby-talk:01108] Re: The value of while..." on 00/01/11, Dave Thomas writes: |> Are there any realistic need for using the `while' value? | |Not now, but I rather like the idea of | |a = ( while | | break if ... | | end | ) Well, you need to change the behavior of `break' too. If we changed to the behavoir, we should not report this error. |It's more the philosophical thing - we say that they are expressions, |and they generate values like expressions, but you can't use them as |expressions. Ruby's pretty good at being orthogonal, but it breaks |down a bit here. But using the value of void expression is clearly an error. I think it'd be reported somehow. By warning? matz.