Skip to content
Jackson Lewis edited this page Jan 31, 2020 · 1 revision

Welcome to the cascade wiki!

Planned Features for 1.0.0

No semicolon at the end of blocks and no | at the beginning of statements

let c = cascade! {
  Vec::new();
  if vec.len() == 0 {
    println!("No semicolon at the end!");
  }
  println!("This looks much closer to an actual block!");
}

Allow return value to be different from initial value

cascade! {
  v: vec!(1, 2, 3);
  ..push(4);
  println!("{:?}", v);
  ()
}