Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Alifatisk
· 1y ago · 0 comments
It does look like it but procs encapsulates a block, but a block alone is not a proc
Comments
[–]
kaiuhl
1y ago
That’s just a performance optimization because blocks are typically only invoked, not passed or otherwise manipulated. If you want to do anything with the block, you pay a tiny tax and have a Proc instance.