[rust-dev] C++ to Rust - Is that about right?
danielmicay at gmail.com
Mon Jul 14 11:58:57 PDT 2014
On 14/07/14 02:45 PM, Christoph Husse wrote:
> Now I can hear the screams already :D. So I want to explain a bit
> about this choice.
> First, I find the rust source code I looked at so far pretty
> unstructured and confusing. Everything seems to be defined somewhere
> at will, without having a real concept (or I am just blind to see it).
> I think it is annoying to put exported types into submodules, because
> this will create a "use" nightmare. It is equally annoying to have
> those huge files as many rust projects have atm, by defining AND
> implementing various types in the same module.
You don't need your weird trait usage to do this... just put all of the
implementations into private submodules if you want smaller files. It's
a style choice and shouldn't be exposed to library users.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the Rust-dev