4 ms·
I seriously wonder why no one did that before (put a context-free language in front of C++). Presumably, because of the need for modules to get anything beyond
by choeger 4y ago
I seriously wonder why no one did that before (put a context-free language in front of C++). Presumably, because of the need for modules to get anything beyond trivial code (without modules, one would have to use the preprocessor which would intermix old and new syntax).
Now, please do it. Context-free syntax is so obviously better that it's really an embarrassment, people are still defending hacks from decades ago.
And please, for the love of Knuth, someone do it with LaTeX, too.
- dehrmann 4y ago> I seriously wonder why no one did that before (put a context-free language in front of C++) My guess is either yes, macros, or if you're going to write a new language, you can skip C++, output object files, and make them compatible at link time.
- saurik 4y agohttps://users.monash.edu/~damian/papers/ https://users.monash.edu/~damian/papers/ Scroll down to "A Modest Proposal: C++ Resyntaxed".
- cmrdporcupine 4y agoI loved this paper when it came out, but as far as I know, the author never actually implemented his proposal.