On Wed, 15 Sep 2004 18:13:54 +0100
John Lamb
Steven T. Hatton wrote:
Q: This question is for people with both C++ and Java experience. Do you believe there are features of Java that C++ could also have, and would benefit from?
Yes: 1. mutexed blocks (why does java call them 'synchronized' when they can't happen at the same time?) Mutex is simply one terminology for a "synchronization primitive". Semaphore is also used. There are other terminologies used in various other implementations of things.
2. garbage collection. This is a good thing for an application programming language, but a bad thing for a system implementation language. IMHO, C's malloc(3) and Free(3) paradigms should remain. However, I consider the lack of a garbage collector in the C++ language a limitation. 3. swing. A very good thing. +++ for Java and Sun.
--
Jerry Feldman