From: "Hal E. Fulton" Date: 2003-07-16T23:56:56+09:00 Subject: Re: Keyword "with" ----- Original Message ----- From: "Martin DeMello" Newsgroups: comp.lang.ruby To: "ruby-talk ML" Sent: Wednesday, July 16, 2003 9:48 AM Subject: Re: Keyword "with" > Mark J. Reed wrote: > > > > Okay, well, VB programmers don't count. ;-) > > Actually, VB complements the 'with' block with a unary . operator, which > is IMO the cleanest way to scope both local and object variables and > methods. At least, when I thought of the instance_eval/with trick, I > gave up on it because I couldn't think of a way to simulate unary .s Now there's a thought. The unary . is not so bad in my opinion. We already have the unary :: in Ruby (::X means Object::X). Sounds like a huge parser change to me, though. Perhaps far too much in exchange for a small benefit. Wonder what Matz would think of it? Hal -- Hal Fulton hal9000@hypermetrics.com