you are viewing a single comment's thread
view the rest of the comments
[–] [S] 4 points 1 year ago (1 child)

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.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year 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.

  • source
  • parent