this post was submitted on 13 Jun 2023
17 points (100.0% liked)

Programming

13387 readers
4 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
top 6 comments
sorted by: hot top controversial new old
[–] Hexorg 8 points 1 year ago (1 children)

I do dislike Rust's namespace(module) mapping to files but I’m not certain requiring a single directory package structure is the solution as I don’t think it’s all that discouraging for having a ton of files in there… have you seen Java? If at some point you’re so concerned about compilation times you should be able to rip out modules into new crates without a problem since they are already in separate folders.

[–] rath@lemmy.world 1 points 1 year ago (1 children)

In Java it's really rare to see hundreds of files in a single package (dir)... do you have examples showing anything different??

[–] Hexorg 4 points 1 year ago

Nothing I can show publically 😅

[–] nii236@lemmy.jtmn.dev 4 points 1 year ago* (last edited 1 year ago)

Aw shit here we go again lol.

Though as a guilty pleasure, and as a career Gopher, I can't get enough of these comparisons.

After reading the article, seems that "as usual", Go being restrictive and more rigid actually helps improve the code.

[–] Kalkaline@lemmy.one 2 points 1 year ago

I know nothing (relatively speaking) about programming or Rust or Go, but all of this made a lot of sense.

[–] KerPop47@lemmy.world 1 points 1 year ago

Ooh, an interesting read. I'm looking to get into a new language, and I've been looking at Rust. Would the best use then be to have many small crates? Maybe have a tool that creates the toml? Wouldn't that keep compile times low?

load more comments
view more: next ›