[rust-dev] Modules and visibility

Patrick Walton pcwalton at mozilla.com
Thu Jan 23 20:57:40 PST 2014


On 1/23/14 8:39 PM, Damien Radtke wrote:
> I will say that I actually really like Go's approach to modules. It uses
> a folder -> module mapping instead, so a module can consist of any
> number of source files provided they all live in the same directory. If
> you prefer your modules to be one big source file each, then that's
> easily done, but those who want to break a module up into several files
> can do so easily.

My issue with Go's approach is that you lose the ability to see where an 
identifier came from by simply searching through the buffer you have 
open; you have to grep in the current directory.

Patrick



More information about the Rust-dev mailing list