News for hackers. Stuff that matters.
Re:Apple's Module proposal to replace headers for C-based la... by kibwen on Monday November 26, 2012 @12:08PM (#4832795)
For completeness, here's how Rust handles modules:

http://dl.rust-lang.org/doc/tutorial.html#modules-and-crates

Browsed golang.org for a bit and didn't find any info on how Go handles modules/packages. All I know is that it has something to do with the folder hierarchy of your project (links appreciated).

Re:Apple's Module proposal to replace headers for C-based la... by ori_b on Monday November 26, 2012 @12:11PM (#4832813)
in Go, you declare a package for your file. Exported symbols start with an upper case letter.
Re:Apple's Module proposal to replace headers for C-based la... by kibwen on Monday November 26, 2012 @12:17PM (#4832835)
Okay, so the `package` keyword in Go is like the `export` keyword in this proposal? Does Go allow submodules?
Re:Apple's Module proposal to replace headers for C-based la... by strmpnk on Monday November 26, 2012 @12:24PM (#4832870)
Packages are given paths or URLs so they might be a subpath but it's not really a subpackage of any sort other than by name.
Re:Apple's Module proposal to replace headers for C-based la... by enneff on Tuesday November 27, 2012 @05:00AM (#4836451)
Here's a talk I gave about Go's package system: http://nf.id.au/my-linuxconfau-go-talk-mostly-about-packages