30
submitted 10 months ago by SorteKanin@feddit.dk to c/rust@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] SorteKanin@feddit.dk 4 points 10 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 1 points 10 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.

this post was submitted on 17 Oct 2025
30 points (100.0% liked)

Rust

8252 readers
28 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS