Decided to bite the bullet and learn Rust.
I'm on my second day and I'm not sure if I've ever been so confused by something trivial. 😂
@talon I'm pretty sure whatever you're confused about isn't trivial. You need to learn/adopt a very low-level way of thinking. It takes time to reach that level of understanding.
@talon Note, not so much low-level as-in "a limited language", but instead very deliberate, single-purpose steps towards a goal.
@cobratbq Right. I do have some low level experience using C/C++, so that's not my biggest issue.
I did post that particular toot while being confused about mod/use and splitting up code over multiple files and directories, but I think I got it?
@talon I may know what you mean. I have experimented a bit myself. Let me guess: "file is module", "mod-block is (sub)module". Note that you have to declare module with mod in either lib/main (in)directly, because if the compiler cannot reach from there it is not being compiled.
@cobratbq Right. I was confused why `use` wouldn't work if I didn't also put
in the entrypoint of the code.
Or, more specifically, I didn't know that mod <blah> would actually resolve the module first, but only once, and subsequent `use`'s would work without it. I'm getting there
@talon at least you havent already learned it and forgotten. That would make you rusty. Sorry, i had to do it.
A fun, happy little Mastodon/Hometown instance. Join us by the fire and have awesome discussions about things, stuff and everything in between! Admins: @Talon and @Mayana.