- For `for(x in foo)`: `iterator()` --- have explored some possible approaches with Tomasz Kalinowski at <https://github.com/t-kalinowski/r-iterator-ideas>. I think any implementation will be relatively straight forward, but the design will require some thought. - For `foo()`: `callable()` --- I *think* this would be relatively straightforward change in `eval.c`. - For `if (foo)`: `ifable()` --- I *think* this would be relatively straightforward change in `eval.c`.
Activity
t-kalinowski commentedon Jun 9, 2023
fordraft implementation: addas.iterable()generic, call fromforloop r-devel/r-svn#130ifandwhiledraft implementation: dispatch toas.logical()fromif,whiler-devel/r-svn#129foo(): possible today by setting a function as the parent object for a class: