J
JohnQ
Is there any effort being made to move C++ toward having a less ambigous
grammer/closer to LALR(1)?
John
grammer/closer to LALR(1)?
John
JohnQ said:Is there any effort being made to move C++ toward having a less
ambigous grammer/closer to LALR(1)?
JohnQ said:Is there any effort being made to move C++ toward having a less ambigous
grammer/closer to LALR(1)?
Ira Baxter said:If anything, it is likely to be much worse.
They can't dump backwards compatibility, so the existing
parse ambiguities are likely to stay, and they
are shoehorning more features into the dark
syntax corners of the language, so there are
likely to be more complications.
Of course, a miracle might occur.
I wouldn't count on it.
The real cure is to use a stronger parsing technology than
LALR, such as GLR. Our C++ front end
uses this quite successfully. The ambiguities
are still there, but they can be managed.
"new" language in the likeness of C++, one doesn't have to (!) for it's
already been done and the knowledge is reusable. After all these years, and
in reading certain passages in D&E, it's nice to know that, even though I
may be in the minority (or obscurity!), that there are others who voiced
opinions for things that went the other way with C++.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.