I don’t think it can. Actually is another reason for RFC: `with ... yield` replacement leave the decision of the DSL-ish on the call-site instead of the implementation might be the way to allow captured blocks in DSL.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
RFC: `with ... yield` replacement | 56 | 3314 | July 12, 2021 | |
Can't understand the example code of block yield with self | 5 | 641 | October 31, 2019 | |
What's making my block a captured block? | 9 | 532 | November 2, 2021 | |
Questions about with..yield | 7 | 206 | January 10, 2024 | |
Yield with self does not work when calling operator methods | 6 | 158 | December 19, 2024 |