Luke Palmer wrote: > Recently, I believe we decided that {} should, as a special case, be > an empty hash rather than a do-nothing code, because that's more > common. > > However, what do we do about: > > while $x-- && some_condition($x) {} > > Here, while is being passed a hash, not a do-nothing code. Should we > force people to write: > > while $x-- && some_condition($x) {;} > > Or should we make a counter-special case of some sort? Or should we > take out the {} special case altogether and force people to write > hash()?
As a third possibility, could we huffman-code "do nothing" clauses by leaving out the appropriate argument? That is: while $x-- && some_condition($x); or loop ( ; some_condition($x) ; $x--); -- Jonathan "Dataweaver" Lang -- Jonathan "Dataweaver" Lang