Y
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
zwp
1955 days ago
What are the restrictions on passing around a ruby `Method` object?
(Please see my sibling comment for example).
link
burlesona
1955 days ago
There is no practical difference in Python functions and Ruby lambdas.
link
(Please see my sibling comment for example).