From: Dave Thomas Date: 2000-01-11T18:27:57-06:00 Subject: [ruby-talk:01108] Re: The value of while... matz@netlab.co.jp (Yukihiro Matsumoto) 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 ) (which I know I can do with a proc, but...) > Some expressions (e.g. while, break, etc.) are marked as void > expression by the parser. I can relax them very easily if they bother > you rather than helping you. 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. Dave