Re:How to make your C codebase Rusty: rewriting keyboard fir...
by pcwalton on Thursday November 21, 2019 @07:03PM
(#21601154)
The problems with the lexer hack are user-facing problems, not compiler-writer-facing problems. They include typename, order of declarations being significant, weird function pointer syntax, and the most vexing parse.
[ Parent
| on HN ]
Re:How to make your C codebase Rusty: rewriting keyboard fir...
by discardable_dan on Friday November 22, 2019 @03:13PM
(#21609561)
I'm not advocating for the lexer hack. There are non-hack-y alternatives, hiding this pain from users. The options of "the lexer hack" or "identifiers first" is a false dichotomy. There are many ways to lex and then semantically analyze programs, and I do not understand why you are arguing as if that is not true.