C++ Resyntaxed
Bill Baxter
dnewsgroup at billbaxter.com
Thu Mar 13 18:37:53 PDT 2008
bearophile wrote:
> This is a short article I have just found on Reddit that shows a possible alternative syntax for C++:
> "A Modest Proposal: C++ Resyntaxed", Ben Werther & Damian Conway:
> http://www.csse.monash.edu.au/~damian/papers/HTML/ModestProposal.html
>
> It says:
>> The language was designed to ensure that the new syntax was LALR(1) parsable, grammatically unambiguous and required no semantic feedback from parser to tokenizer.<
>
> That reminds me of D :-)
I find it interesting that they simplify the language by *adding* at
least 5 new keywords, maybe more even.
Take that all you keyword accountants! More keywords == simpler!
Although I have to admit, even *I* think they're going a little
overboard when they define "pre" and "post" as keywords just to allow
creating the operator overloads "operator pre ++" and "operator post
++". Surely there's a way to improve that syntax without introducing
two whole new keywords. Like "operator <>++" and "operator ++<>" or
some such.
--bb
More information about the Digitalmars-d
mailing list