Hacker News new | ask | show | jobs
by syspec 1954 days ago
Ah, so it's the same then
1 comments

Not really the same since lambda in Python is just a syntactic variant that is restricted. A function defined using `def` can be passed around without restrictions, which you simply cannot do in Ruby.
What are the restrictions on passing around a ruby `Method` object?

(Please see my sibling comment for example).

There is no practical difference in Python functions and Ruby lambdas.