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.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to