Why C?
Posted Nov 11, 2004 19:29 UTC (Thu) by
ncm (subscriber, #165)
In reply to:
Sendmail X by minichaz
Parent article:
Sendmail X
Good question. It's easy to write code that is proof against buffer overruns in C++, with no cost to performance. Furthermore, the standard library probably has the data structures you need, implemented with much greater care than you could afford to do yourself.
It's hard to imagine why anything other than a kernel module is written in raw C any more. It's easy, though, to see why someone wouldn't want a long-running daemon with a garbage collector.
(
Log in to post comments)