I have to agree with @darkwiiplayer
on this one. As far as the syntax is concerned, procs can be created using proc, Proc.new and Kernel.proc.
As far as the differences are concerned, there are two big differences in my opinion.
How the two handles the return statement.
Proc can silently discard extra params and missing params are set to nil, whereas lambda complains.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I have to agree with @darkwiiplayer on this one. As far as the syntax is concerned, procs can be created using
proc
,Proc.new
andKernel.proc
.As far as the differences are concerned, there are two big differences in my opinion.
return
statement.lambda
complains.