On Wed, Jul 22, 2009 at 1:07 PM, Dan Bron<[email protected]> wrote:
> Why C and not C++?  And why would I use a C++ compiler if
> I was coding pure C?

I do not know Roger's reasons, but I also have a dim view
of C++:

C has a well defined ABI, C++ does not (and often you
will see its ABI change with new compiler releases).

Also, C++ does not allow real abstraction because you must
always concern yourself with how the memory within your
objects was allocated.  You can manage this but the productivity
hit is not trivial.

Meanwhile, C++ is a lot harder to read, and finding the relevant
definitions can be very time consuming.

For example:

   x++<<y();

In C, this would be invalid code.  In C++ it can be valid code
with many different potentially relevant definitions which you
might have to sort through to find the meaning of this phrase.

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to