From: Kevin Smith Date: 2001-03-11T02:29:02+09:00 Subject: [ruby-talk:12385] Re: FEATURE REQUEST: 'my' local variables matz@zetabits.com wrote: >|> loop { >|> ... >|> } >| >|Hmmmm. At a glance, that looks pretty confusing. >|I'm so used to | x | that it's jarring having < a >|| b > instead. Slight changes to the symbols used >|might make it better. > >So, which symbols are better for them? I was afraid you would ask. I'm hoping to avoid re-using the <> operators, if possible. And I would like to keep | | as surrounding operators, rather than now having just one in the middle. Perhaps one of the following would work. I think I like any of them better than the original proposal, but I don't know which ones would fit the existing parser better, or be most Ruby-ish. loop { | a,b,c || d,e,f | loop { | a,b,c | local :d, :e, :f loop { | a,b,c, ::d, ::e, ::f | loop { | a,b,c | ::d, ::e, ::f loop { | a,b,c | (d,e,f) loop { | a,b,c (d,e,f) | loop { | a,b,c | def_locals(d,e,f) loop { | a,b,c, ,, | loop { | a,b,c | Kevin