Re:Apple's Module proposal to replace headers for C-based la...
by tptacek on Monday November 26, 2012 @01:56PM
(#4833326)
That's what the previous best practices (impl pointers and such) did with C++ before; the goal of some of those practices was to minimize the constant factors. I may be misreading how "modules" work, but they seem to accept that sprawling dependencies will get pulled in (if only once).
[ Parent
| on HN ]
Re:Apple's Module proposal to replace headers for C-based la...
by gte910h on Monday November 26, 2012 @02:47PM
(#4833613)
This proposal supports "import std.stdio;" type syntax as well. That seems to greatly help fix the constant part of the equation as well.
(In the selection called "Selective Import"). We can't save the world from horrible coders, but selective import would drastically drop the constant costs.
Re:Apple's Module proposal to replace headers for C-based la...
by Locke1689 on Monday November 26, 2012 @02:20PM
(#4833451)
I think the submodule system will help address this issue. People will often import the entire standard library just for one small feature. If submodules are implemented correctly we can reduce that.
I'm a little wary at such a major change to C, though.