Snaipe / libcsptr

Smart pointers for the (GNU) C programming language
https://snai.pe/c/c-smart-pointers/
MIT License
1.57k stars 143 forks source link

Q. Why didn't you use C++ you moron? #17

Closed DBJDBJ closed 2 years ago

DBJDBJ commented 3 years ago

Q. Why didn't you use C++ you moron?

A. Because C makes smaller and faster executables. There is no ABI which is not made for C. Using C, I can focus on the job done. Using C++, one first has to satisfy the language[1], and just then one can try and get the job done.

defer is coming into ISO C (gasp!) Good read for us C "morons", who use clang or gnuc __cleanup__

[1] What do I mean by "satisfy the language"? motivation section of this paper explains it clearly

Snaipe commented 2 years ago

This was a joke, of course nobody is going to question what C brings to the table and how it obviously differs from C++.