Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Mar 2002 09:49:27 -0700 (MST)
From:      "M. Warner Losh" <imp@village.org>
To:        culverk@alpha.yumyumyum.org
Cc:        vel@bugz.infotecs.ru, freebsd-hackers@FreeBSD.ORG
Subject:   Re: C vs C++
Message-ID:  <20020305.094927.40858673.imp@village.org>
In-Reply-To: <20020305102829.A3576-100000@alpha.yumyumyum.org>
References:  <200203051407.g25E7Cd67446@bugz.infotecs.ru> <20020305102829.A3576-100000@alpha.yumyumyum.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20020305102829.A3576-100000@alpha.yumyumyum.org>
            Kenneth Culver <culverk@alpha.yumyumyum.org> writes:
: > I have a small problem. I work for software development company and
: > write daemons and console tools for Unix. My boss wants everything to be
: > written in C++, because he thinks C++ is cool. I prefer C for such
: > tasks, but I cannot really put good arguments of why and where C++ can
: > be worse than C. I know many of you prefer C too. Can you please explain
: > some disadvantages of C++ comparing to C ? Is it slower, does it produce
: > less effective code, why is it like that, etc ... or please direct me to
: > some articles where this can be explained.
: 
: My main problem with C++ is that it adds a lot of overhead, and it's slow.
: Also, it drives me nuts when people code in C++ and write all kinds of
: classes when using classes for certain things just doesn't make sense, and
: makes the code much more convoluted.

C++ doesn't add noticable overhead and isn't slow, unless you are a
dumbass about how you write it.  All languages give you plenty of ways
to write speghetti fortran code :-).  C++ gives you a number of ways
to obfuscate.

Warner


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020305.094927.40858673.imp>