3 ms·
Seems like a bad idea, given that the CPP and HTML have a fair number of overlapping tokens (e.g. `#` for both URL fragments and macro beginnings). Why not use
by woodruffw 2y ago
Seems like a bad idea, given that the CPP and HTML have a fair number of overlapping tokens (e.g. `#` for both URL fragments and macro beginnings).
Why not use SSI[1]? It's inspired by the CPP's syntax, but is supported directly by most HTTP servers (and is more powerful, to boot).
[1]: https://en.wikipedia.org/wiki/Server_Side_Includes https://en.wikipedia.org/wiki/Server_Side_Includes
- ksherlock 2y ago# is only processed by cpp when it's the first non-whitespace character in a line so that shouldn't be an issue in the real world. But, yeah, SSI.
- woodruffw 2y agoTrue. Maybe < and > would have been better examples, although one could argue those are optional :-)
- zzo38computer 2y agoYes, although if you use #define or C comments or several other stuff then it can potentially cause a problem due to it is not a C syntax and is not expected.
- tiagod 2y ago>Why not use SSI[1]? Because hacking is fun, and it's still fun if it's a bad idea
- beej71 2y agoThank you for saying this!
- Alifatisk 2y agoCompletely forgot about SSI! What a cool feature