News for hackers. Stuff that matters.
Re:Apple's Module proposal to replace headers for C-based la... by dpark on Monday November 26, 2012 @05:03PM (#4834288)
Overall this seems good. The lack of modules in C/C++ is a huge pain. The "link" section seems like a really leaky abstraction, though.

  module ClangAST {
    umbrella header “AST/AST.h”
    module * { }
    link “-lclangAST”
  }
This hardcodes an implementation-specific syntax and yet says nothing meaningful. Drop the "-l" and you're just restating the name of the module. What value is there in baking a command-line flag into the module definition?

P.S. I also find it strange that something intended to blend with C/C++ doesn't use semi-colons. This is just stylistic, though.

There are no comments on this comment yet.