473,414 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Next version of C++ as ambigous as today?

Is there any effort being made to move C++ toward having a less ambigous
grammer/closer to LALR(1)?

John

Jun 22 '07 #1
3 1385
JohnQ wrote:
Is there any effort being made to move C++ toward having a less
ambigous grammer/closer to LALR(1)?
I think you should ask that in 'comp.std.c++'. The standardization
procedures are discussed there.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jun 22 '07 #2
"JohnQ" <jo***********************@yahoo.comwrote in message
news:Z9*****************@newssvr25.news.prodigy.ne t...
Is there any effort being made to move C++ toward having a less ambigous
grammer/closer to LALR(1)?
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.
--
Ira Baxter, CTO
www.semanticdesigns.com
Jun 23 '07 #3

"Ira Baxter" <id******@semdesigns.comwrote in message
news:f5********@enews4.newsguy.com...
"JohnQ" <jo***********************@yahoo.comwrote in message
news:Z9*****************@newssvr25.news.prodigy.ne t...
>Is there any effort being made to move C++ toward having a less ambigous
grammer/closer to LALR(1)?

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.
Complexity grows on complexity. I hear ya.
>
Of course, a miracle might occur.
I wouldn't count on it.
That backward compatibility thing is a real bitch huh.
>
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.
Or to avoid those ambiguities in a subset of C++ with a slightly modified
syntax (use <[]for templates, for example), call it something else and
offer it to those who don't have a care about backward compatibility.

I read the first half or so of Stroustrup's "D&E" yesterday again and I for
one would not want to go through all the drudgery that the inventors of C++
did as it seems a herculean effort. The nice thing is though, to invent a
"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++. A lot of good choice
were made. A few really bad ones were though too. The few "bad" ones are
enough to leave one wanting an "incrementally" better C++ (hehe, ++C++...
C++ should have been ++C, preincrement/then, leaving C++ for post
increment/now). What is one of those things you ask? Classes and structs
being the same. But that's easier to say now, surely, than it was back then.
But that's the point: a lot has been learned since then, but can't be
realized because of this "backward compatibility" thing. Solution: a "new"
language ("in the likeness of C++).

Let's see.. how would that go... Ooo I know, use C++ as a frontend of the
compiler for the new language. "C++Front". Well isn't that a novel idea. ;)

John

Jun 24 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andy Jacobs | last post by:
Hi all I've been messing with PHP for a while now and have reached a point where I can make it do just about anything that I want it to do. That doesn't mean that I can make it do anything, far...
8
by: Smoke | last post by:
I have a successful script for determining today's date. Does anyone have anything for determining tomorrow and the next day since it would have to look at the day of month and month of year? ...
2
by: Bengt Richter | last post by:
Is this a well known bug that's been fixed? I couldn't find any discussion of it, but maybe my googling's off today ;-/ >>> def foo(): ... it = iter(range(10)) ... while True: ... ...
2
by: Ken Cox [Microsoft MVP] | last post by:
For those interested in the next version of ASP.NET... Start building an ASP.NET 2.0 site today: Download Visual Web Developer 2005 Express Edition http://lab.msdn.microsoft.com/express/vwd/
0
by: Coach | last post by:
I have just migrated an application from VS2003 to VS2005 and now receive Ambigous Match Found error. I changed my Control Tag to represent 2005 and now I receive an error stating "another...
2
by: HeroinNO.4 | last post by:
Hello everyone! Now the latest version of free count down timer source code is available in http://www.fillweb.com/countdown.htm, you can open it in IE and View->Source to see the latest version...
2
by: Dave Alessi | last post by:
I migrated my project from VS 2003 to VS 2005. The application runs ok with a few exceptions, one being an ambigoius reference when loading a form. My application uses its own "master page"...
3
by: Titan | last post by:
When I run my project (F5), it runs an older version of my project. However, when I build or rebuild the solution, it builds flawlessly... so shouldn't this overwrite the older version of my...
0
ADezii
by: ADezii | last post by:
If you want to visit each item in an Array, you have two alternatives: Use a For Each..Next loop, using a Variant to retrieve each value in turn. Use a For...Next loop, looping from the Lower...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.