While I agree that equating a programming language to a carcinogenic substance is inherently wrong, your argument is partially false too.
The cost is born by the costumers of the software, not the developers. In that sense, it's actually directly opposed to your point.
with the language you've got
* the creators of C
* the developers writing software (tool/library/whatever) with C
* the users which use this software
If the software has a security issue, the cost will have to be born by the users, not the developers.That makes it (imo) directly opposed to your argument, as its technically the same as with the carcinogenic substance
* the creators of the substance dont get cancer
* the contractors using it to build the house dont get cancer
* the people that live in the house get cancerSo OP's point is correct. The two situations are not exactly analogous.
You're both a little bit wrong, and both want to be right, so seem to be ignoring the negative aspects of both your arguments.
C does not have a direct proven link to causing death or catastrophic disease like asbestos does, but any bugs due to language "allowing" the dev to shoot themselves in the foot is largely born by the users - at least initially.
I work with C and it kills me a little more each day, just like cigarettes. Its a pretty fair comparison.
And really, I think your argument bolsters my case. Federal and state governments are freaking out about cybersecurity and protecting infrastructure and voting systems, so why shouldn’t they ban the use of software written in C in their acquisition process?
We stopped using asbestos because of the link between its manufacture/installation and lung cancer. It’s a clear case where government regulation helps deal with a market failure: asbestos is cheap and effective, so consumers like it, but nobody involved in asbestos transactions bears the cost of the lung cancers the industry causes.
Writing C doesn’t make underpaid programmer die early deaths. The issues with C are borne directly by the customers who are using C software. It’s not really a market failure of any kind.