From: botp Date: 2012-02-03T11:35:34+09:00 Subject: Re: Multiple assignment in conditional On Thu, Feb 2, 2012 at 6:35 PM, Robert Klemme wrote: > I think so.  But that still does not make it a brilliant idiom in my > eyes.  Granted, the example Gavin presented looks pretty reasonable. given a conditional expression like, if ( foo bar) or while ( foo bar ) shouldn' t we be concerned only of the value of the parenthetical expression? i think that is true for all languages, no? i dunno. matz allows x,y = foo to return nil, but not if (x,y = foo). i hope i can read matz brain :) > However, I haven't missed this feature in all those years so I am a > tad uncertain how common or uncommon that is. w these both 1.9.3+ features, we can dry up some while routines, eg, while (x,y,z=foo) doit end cause otherwise, i'll have to do it like this x,y,z=foo while (x) doit x,y,z=foo end > Kind regards > robert best regards -botp