Actions
Feature #14821
closedaditional arguments to yield_self
Feature #14821:
aditional arguments to yield_self
Status:
Rejected
Assignee:
-
Target version:
-
Description
Currently, yield_self only accepts a block as its single argument. I propose that it should also accept a series of additional arguments that get passed to the block after self
This is what I mean:
which would allow writing code like this
instead of code like this
This 1) is shorter 2) expresses intention rather than implementation.
Actions