From: Mathieu Bouchard Date: 2005-03-21T18:44:50+09:00 Subject: Re: Paul Graham recommends Ruby On Sun, 20 Mar 2005, David A. Black wrote: > I'm not sure anything's new in that CVS feature except: > my_lambda = {|| puts "I am a lambda"} > where the || (with or without a param list) tells you that it's a > lambda rather than a hash. > I'm not a fan of this; I prefer using the lambda keyword. Why not alias lambda/proc to L ? it would be just one more character to type than the new syntax when there are arguments, and one _less_ character when there are none. And no syntax changes. precedent: there's already a method called p. _____________________________________________________________________ Mathieu Bouchard -=- Montr�al QC Canada -=- http://artengine.ca/matju