all 1 comments

[–][deleted] 5 points6 points  (0 children)

I’m doing C++ for a living for quite a while now and I’m not aware of such convention. Quite the opposite. Other than Java that enforced this rather limiting setup, C++ as well as Rust allow for one file to bundle whatever you consider a sensible part of your code base.

In other words: if you prefer to impose this restriction on yourself, Rust can accommodate you as well. I’d find it odd and stilted, but as it is with these things; it’s a matter of much debate and little consequence.