From: Trans Date: 2008-10-03T04:13:38+09:00 Subject: Re: Is Assignment in a Conditional an Idiom? On Oct 2, 2:38 pm, wort...@gmail.com wrote: > Hi > > I was just reading the following blog posthttp://www.elctech.com/blog/clarity-over-cleverness-but-what-is-clever, > and like the author, it is the first time I have seen code as he > describes.  From the comments it would seem that some think it is an > idiom to be used, and perhaps others do not. > > Just curious as to how common this use it?  I do tend to side with > view that it is not clear at first glance. It's pretty common; since it saves a line of code. As long as the assignment is right on the surface of the condition, and not buried deep inside other logic, I think it works well and is quite readable. IMHO, T.