From: "Berger, Daniel" Date: 2008-05-23T00:37:16+09:00 Subject: Re: lambda, ->, haskell, and so on > -----Original Message----- > From: Suraj N. Kurapati [mailto:sunaku@gmail.com] > Sent: Thursday, May 22, 2008 8:12 AM > To: ruby-core@ruby-lang.org > Subject: Re: lambda, ->, haskell, and so on > > Suraj N. Kurapati wrote: > > my first preference would be to resolve the ambiguity of "|" in the > > Ruby parser itself (see [1] and [2]). That would obviate > the need for > > a new lambda operator and enhance the existing, well established > > lambda {|| ...} idiom. > > > > [1] http://www.ruby-forum.com/topic/151550#673072 > > [2] http://www.ruby-forum.com/topic/151550#673110 > > Nobody has yet commented on these two brilliant ideas (see links > above) about resolving the "|" ambiguity in the parser itself. > > Could someone *please* consider these ideas? Could someone show me the use case for lambdas with default arguments? Why would we need this in practice? I also don't understand the use case for blocks with default values. Thanks, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.