Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
blubb
on Feb 21, 2010
|
parent
|
context
|
favorite
| on:
Ruby is not a callable orientated language
Ah, I didn't know that Proc.new != proc/lambda :)
They both return Proc objects though, so I wonder if it is possible to "convert" them.
carbon8
on Feb 22, 2010
[–]
One small note, as pointed out in
http://innig.net/software/ruby/closures-in-ruby.rb
posted by arohner above: although in 1.8 proc is an alias for lambda, in 1.9 it's now an alias for Proc.new.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
They both return Proc objects though, so I wonder if it is possible to "convert" them.