Live data from Hacker News

Apple's Module proposal to replace headers for C-based languages [pdf]

llvm.org

11–20 of 187 posts

Re: Apple's Module proposal to replace headers for C-based languages [pdf]

#11
post #9

Almost like the way D programming language handle it http://dlang.org/module.html

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 languages [pdf]

#13
post #11
post #9

Almost like the way D programming language handle it http://dlang.org/module.html

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).

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 languages [pdf]

#16
post #15

"Apple's Module proposal..." Is Apple really who deserves credit here? Is there something I missed about Apple's management driving this, and not Gregor or the C++ standards committee?

First slide. It seems like he's employed by Apple and being paid to work on this. So yes, I think calling it Apple's solution an apt description.

Re: Apple's Module proposal to replace headers for C-based languages [pdf]

#17
post #13
post #11

Earlier quoted context omitted.

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).

in Go, you declare a package for your file. Exported symbols start with an upper case letter.

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 languages [pdf]

#19
post #10
post #6

Everyone wants modules but nobody can agree on how they should behave. This is why they weren't included in C(++)11.

Speaking as someone who doesn't follow the development of those specs, can you elaborate? What behaviors are contentious?

I actually haven't been following modules at all so I couldn't tell you exactly what's the problem. Watching from 30:40 of the following video may be insightful though:

http://channel9.msdn.com/Events/GoingNative/GoingNative-2012...

Post reply on HN