Why is not more FreeBSD software written in C++?

Daniel O'Connor doconnor at gsoft.com.au
Sat Apr 15 21:38:20 UTC 2006


On Sunday 16 April 2006 01:34, Christer Solskogen wrote:
> > My first guess is that it's a habit. People dealing with the FreeBSD
> > source code are used to C, and therefore use that for their apps. If it's
> > only that, there'd be no good reason for not writing a tool like cvsup in
> > C++, right? Or is there a more technical reason?
>
> If you really want you can code whatever tool you need in c++. I guess
> cvsup was rewritten in C because the developer understands C, and not
> C++ (or the task of rewrite cvsup in C++ would be harder)

A not insignificant reason (IMO) is that C++ is much slower to compile..

Also, gcc didn't use to be (ie when FreeBSD was started) a good C++ compiler.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-chat/attachments/20060415/e660e8df/attachment.pgp


More information about the freebsd-chat mailing list