Propane: an experimental generator syntax for Rust

from blog Blogs on Without boats, dreams dry up, | ↗ original
I’ve just released a new crate called propane, which is a library for writing generator functions. It can only run on nightly: #![feature(generators, generator_trait, try_trait)] #[propane::generator] fn fizz_buzz() -> String { for x in 1..101 { match (x % 3 == 0, x % 5 == 0) { (true, true) => yield String::from("FizzBuzz"), (true, false) =>...