I never want to return to Python

292 points TiemenSch

It all seems to be for None.

For real, though, I'm footgunning myself in Python every time by forgetting to return ever since I started writing my libs in Rust. Leaving it out makes your function looks like poems:

pub fn foo() -> Option<String>{
    let foo = 1;
    let bar = Some(2);
    bar.map(|baz| format!("<{}", baz + foo)) 
}

Love is an option.

End of holiday doodle. Have a nice week!