| ▲ | dorianmariecom 18 hours ago |
| blocks are just procs :) |
|
| ▲ | Alifatisk 18 hours ago | parent [-] |
| It does look like it but procs encapsulates a block, but a block alone is not a proc |
| |
| ▲ | kaiuhl 14 hours ago | parent [-] | | 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. |
|