From: Hal Fulton Date: 2003-12-02T06:26:40+09:00 Subject: Re: anything disappearing from Ruby for 2.0? Martin DeMello wrote: > Yukihiro Matsumoto wrote: > >>I like the basic idea. the "shortcut notation" would be a key. I >>couldn't think of a good one for years. But someone might be able to. > > > \{...} perhaps, by analogy with Haskell's \ for lambda. Backslash is always problematic since it's used as an escape. I really like the &{...} idea, for the following reasons: 1. It's parallel in some sense to the &block notation, much as * can be used on formal or actual parameters. 2. & is already a recognized operator (token). 3. There's no unary & in use yet except &block. But maybe there is a good reason this should not be used? Another note: I assume it would work with do/end also: myproc = & do blah; blah end which I might even write as myproc = &do blah; blah end Hal