From: daz Date: 2005-11-05T09:37:09+09:00 Subject: Re: ruby-dev summary 27393-27541 Kero wrote: > >> How about block level? > >> > >> using jcode do > >> p "\244\242\244\244".chop > >> end > > > > I had asked Shugo the question in [ruby-dev:27419], and his > > answer is that he prefers one-line construct, since he doesn't > > like to deepen indent level more. > > p "\244\242\244\244".chop using jcode > But then how to express (as proposed): p "\244\242\244\244".jcode$chop.kcode$change Gets silly ? p "\244\242\244\244".(chop using jcode).(change using kcode) p "\244\242\244\244".chop.change using jcode, kcode # ?? Same problems with block level - identifies only one namespace and no specific connection to any/all referenced methods within that block. I guess ruby-dev will have been through this process. Check responses against this contrivance :-/ p "\244\242\244\244".jcode$chop.kcode$chop Sometimes, a new language feature can be helped by new syntax. When all single chr syntax has been used, two chrs are suggested. One 2-chr combo is often as silly as the next. 'using' is a 5-chr combo ... 'each_with_index' is a ... hang on ... anyway, they're readable and have no 'sharp & pointy' arrows. I'm so sorry, I seem to have 'gone off on one'. daz