If people had an appreciation for just how much havoc the lexer hack causes in C and C++, there wouldn't be anywhere near the amount of complaining about modern languages that put types after identifiers (var x: int) instead of the reverse (int x).
-
-
This means that C has to reparse header files over and over, leading to compilation time problems. Precompiled headers are hard to implement correctly--on macOS they were broken for a long time, so projects often disabled them.
-
The classic way to implement precompiled headers in GCC is literally to parse a bunch of headers, then core dump. Then you can start from that core dump when compiling your code. That's what macOS used to do. (Yes, really.)
- 4 more replies
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.