Implement gen blocks in the 2024 edition by oli-obk · Pull Request #116447 · rust-lang/rust (original) (raw)

Nitpicking, but since generators have been renamed to coroutines, shouldn't the block maybe say coro? 👀

I'd find coro misleading because, absent the rest of the word, it looks like it should be pronounced "coh-roh" rather than "coh-roo".

Why not co, as in co fn? (After all, in contexts that had both "subroutines"/"procedures" and "functions", the distinction was generally whether the block of code returned something, and coro fn is sort of rudundant... like "co-routine routine".)

Plus, it'd be reminiscent of Go's go keyword, which exists in service of a similar goal.