3 ms·
blocks are just procs :)
by dorianmariecom 1y ago
blocks are just procs :)
- Alifatisk 1y agoIt does look like it but procs encapsulates a block, but a block alone is not a proc
- kaiuhl 1y agoThat’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.