rust hot take 

The introduction of `foo.rs` as an alternative to `foo/mod.rs` has been the worst thing to happen to Rust

Follow

re: rust hot take 

EITHER have one or the other. Having both is fucking shit. And like, I get reasons for both. I prefer the old way because it makes directories more clearly separated. Other people prefer the other way.

The problem arises from having a big project where people can't agree on how to do it and so it changes in every other module.

Β· Β· 1 Β· 2 Β· 8

re: rust hot take 

@spacekookie Clippy has got you covered:

#![deny(clippy::self_named_module_files)]

re: rust hot take 

@jendrik I should try sneaking this into the work repo xD

Sign in to participate in the conversation
Octodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!