Does that mean I should be holding my breath for a -DIDE switch to
launch an IDE that gets the syntax highlighting right? Heh.
Seriously, I do agree that was a smart choice. I wish its output were a
bit more semantic, but things like that can be fixed. Having correct
parsing is priceless, and it's a very logical part of the build process.
-[Unknown]
Walter Bright wrote:
Unknown W. Brackets wrote:
Of course, I'm sure a better API could be devised. This sort of
format, if properly standardized, could be used to make IDEs much more
efficient. It would also allow for much better and more accurate
error reporting, and the compiler could be loaded as a shared object
so that initialization cost would be low.
Most language services for Visual Studio are essentially a large part
of the compiler (often reimplemented in C# or some such) without the
code generation. It seems like such a silly and obvious waste to me.
That's why Ddoc is part of the compiler, so it can get the syntax
highlighting right.