• livingcoder@programming.dev
    link
    fedilink
    arrow-up
    25
    ·
    3 months ago

    When I learned Python I thought that not having a statically typed language was the way to go, but then it just became an issue when I was trying to ensure that everything was at least something like what I was expecting. Going back to statically typed languages even harder with Rust has been a dream. I love it.

  • renegadesporkA
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    3 months ago

    let comment: String = String::from(“lol”);
    println!(“{}”, comment);

  • garlicandonions@lemmy.world
    cake
    link
    fedilink
    arrow-up
    5
    ·
    3 months ago

    It’s documentation. I’m a strickler to type in python so later when I look at my code and go what does this do it’s easier.

  • HStone32@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    2 months ago

    Data types do matter, and someone’s got to declare them at some point, or else your compiler won’t know how to intepret them. It’s just a question of who should be doing the declaring: you, or a parser algorithm? Personally, I don’t like things being done for me.