[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

1612: Re: [MUD-Dev] Languages

[Full Header] [Plain Text]
From: Caliban Tiresias Darklock <caliban@darklock.com>
Newsgroups: nu.kanga.list.mud-dev
Date: Wed, 21 May 1997 14:41:02 -0400
References: [1]
Organization: Kanga.Nu
Chris Gray wrote:
> 
> I've read enough on C++ to know
> that its unlikely I'll ever use it, and I fail to see any contributions
> it has made to the state of the art (fight'n words, I know!). I do need
> to read up on Java, however.

AMEN!!!!! I have offered the same two challenges to every C++ programmer
I've met. No one has ever satisfactorily responded.

	1. Show me one thing object oriented programming does which proper 
	structured programming discipline can not.

	2. Show me one C++ construct that is impossible to implement in C.

The major arguments I receive on this are:

	1. Inheritance. I respond, 'void *parent'.

	2. Methods in classes. I respond, 'int (*method)()'.

I do admit that you can write a program much faster in C++ when you use
the proper class libraries, and C++ can indeed be made much more
readable. But starting from a blank text file and using no class
libraries at all, just the standard C and C++ compiler libraries, C++
ends up looking an awful lot like C... except that it runs slower, has a
fatter binary, and took a good deal longer to write. ;>

The benefits of C++ are in code reuse, but code reuse is not always an
appropriate thing, and you have to have some C++ code to reuse first.