Hacker News new | ask | show | jobs
by feanaro 1955 days ago
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.
2 comments

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.