Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Any reason to use C?

Author: Sune Fischer

Date: 16:20:23 07/28/03

Go up one level in this thread


On July 28, 2003 at 17:34:46, Russell Reagan wrote:

>Is there any reason to start new projects with C anymore? It seems like most (if
>not all) of the drawbacks of C++ have faded away with modern compilers.

Looks like it.
To me C++ is C with a lot of cool stuff on top.
Some things may be slower, so don't use those.

You get so much for free, just take vectors or std, I mean without strings you
have to write everything yourself from scratch.
Kind of inefficient, and most likely these library rutines are optimized better
then you and I could do.

I also happen to like the object idea, seems natural once one gets used to it,
certainly it makes the code is more compact and simpler to read than in C where
it easily gets very bloated.

>Note that I am talking about new projects, and maintaining old projects is
>obviously a good reason to still use C.

It takes longer to learn C++, but in my experience, very few who has invested
the time goes back to C.

-S.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.