From: Yukihiro Matsumoto Date: 2010-09-09T10:31:03+09:00 Subject: [ruby-core:32192] Re: Making custom_lambda() work Hi, In message "Re: [ruby-core:32171] Re: Making custom_lambda() work" on Thu, 9 Sep 2010 04:57:51 +0900, Joshua Ballanco writes: |On Sep 8, 2010, at 9:57 AM, Nikolai Weibull wrote: |> I realize that I���m breaking the thread, but why is the calling of |> lambdas with parentheses such an important issue? I���ve never missed |> it. Having to write foo.call never seemed like an issue to me. I |> sort of like the lack of parentheses. | |Well, personally my reason for wanting to do this is mildly subversive. It would, in effect, make methods and lambdas much closer to being equivalent: Method objects and lambdas are already VERY close to equivalent: class Worker def make_it "A regular method" end end class Factory def initialize(worker) @worker = worker end def do_it @worker.call end end # a lambda (function object) lambda = lambda{"lambda"} p Factory.new(lambda).do_it # a method object method = Worker.new.method(:make_it) p Factory.new(method).do_it matz.