I just wondered whether there is any good reason for or even an advantage in having to invoke Proc
s using proc.call(args)
in Ruby, which makes higher-order function syntax much more verbose and less intuitive.
Why not just proc(args)
? Why draw a distinction between functions, lambdas and blocks? Basically, it's all the same thing so why this confusing syntax? Or is there any point for it I don't realize?