From: Gavin Sinclair Date: 2004-08-06T00:34:44+09:00 Subject: Re: Macros in Ruby On Friday, August 6, 2004, 12:11:27 AM, Ara.T.Howard wrote: > perhaps a shorthand: > lambda{ puts 'lambda' } => Proc:0xb74041a0 > &{ puts 'lambda too' } => Proc:0xb74041a1 > i'm probably missing something, but i don't think the syntax '&{' occurs > anywhere now and '&' is already synomynous with blocks/procs/etc. If you must have a shortcut, I think 'L' makes more sense. L { puts 'lambda' } => Proc:0xb74041a0 My aesthetic sense says that a shortcut is unnecessary because creating explicit lambdas is uncommon (because Ruby has blocks, thank goodness), and because when you do explicitly create lambdas, they're usually so cool and saving so much other effort that I don't begrudge them a few characters :) Gavin