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
Re:Apple's Module proposal to replace headers for C-based la...
by acomjean on Monday November 26, 2012 @12:56PM
(#4833001)
also looks like ada to me
with Ada.Strings.Unbounded;
but "withing" ada, you'd get the parent package(s). eg you'd get Ada.Strings and Ada.Strings.Unbounded but not Ada.Strings.Fixed
Re:Apple's Module proposal to replace headers for C-based la...
by CountHackulus on Tuesday November 27, 2012 @11:38AM
(#4837606)
When I saw import std.stdio; I could've sword I was looking at D for a second. So clearly I'm all for this proposal. Anything to make C++ more like D is a win in my books.
http://dlang.org/module.html