• Lucy :3@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    27 days ago

    Rust:

    fn getofmylawn(lawn: Lawn) -> bool {
        lawn.remove()
    }
    

    C:

    bool getofmylawn(Lawn lawn) {
        return lawn.remove();
    }
    

    With Rust you safe 1 char, and gain needing to skip a whole line to see what type something is.