From: Josh Cheek Date: 2011-01-12T06:37:50+09:00 Subject: Re: Parallel Assignments and Elegance/Complexity Ratio. --0016361e7e5820b4a8049998e508 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jan 11, 2011 at 2:29 PM, Kedar Mhaswade wrote: > > variable. > > I consider the former to be much more elegant as it avoids a temporary > This however is already covered by me as the first case (with HIGH > elegance rating) since you are expecting the line to contain exactly two > strings (and if it is not so, it's an exceptional situation) and hence > the (expected) number of lvalues = number of rvalues. I do > like/understand such application of parallel assignment. > > Sorry, I don't understand. In this example, the rhs values are contained in an Array, which you consider low elegance, in your first example the rhs values are discrete. I don't see how they are the same, I think this is an instance of your "x, y, z = [1, 2, 3]", which you consider to be low elegance. --0016361e7e5820b4a8049998e508--