• SorteKanin@feddit.dkOP
    link
    fedilink
    arrow-up
    4
    ·
    5 months ago

    If I eventually decide I want to split my one file script into two files will I be able to?

    I honestly would say that’s when it goes from a script to a proper project, and you should treat it like that with a Cargo.toml and everything. I think this is a case where it would push you towards better practices and I don’t think it should support multiple files like that.

    • FizzyOrange@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      5 months ago

      I disagree. That’s how Python works but it sucks because it means instead of a C++ (for example) project with some Python utility scripts scattered inside it, you have to turn it into a proper Python project, when it isn’t a Python project; you just have some Python scripts in it.

      Basically it throws away the ad-hoc scripting use case entirely.