r-lib / coro

Coroutines for R
https://coro.r-lib.org/
Other
160 stars 8 forks source link

Use an unlikely sentinel #35

Closed lionel- closed 2 years ago

lionel- commented 3 years ago

e.g. as.symbol(".__exhausted__."). This symbol should never appear literally in code or be stored in static objects. This way we can loop over symbols e.g. in a namespace without risking unexpected exhaustion.