From: Kent Dahl Date: 2001-08-23T06:21:57+09:00 Subject: [ruby-talk:20125] Re: Maximum Surprise Bob Gustafson wrote: > Is there anything reasonable which could be done in the parsing stage to > flag "lots.keys do |k| end" as problematic syntax? Probably not. lots.keys is a method call, and how many arguments or wheter it takes a block, can't be assured when it is parsed. (The method may not even exist when the call is parsed.) -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.�k.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/