Post
Topic
Board Development & Technical Discussion
Merits 3 from 2 users
Re: why was bitcoin written in C++ instead of pure C?
by
BlackHatCoiner
on 06/03/2024, 13:28:10 UTC
⭐ Merited by Pmalek (2) ,apogio (1)
Because Bitcoin is complex, and complex projects are better to be programmed in object oriented programming. It also comes with rich libraries like STL, which reduce the overall chance for making a mistake, and it improves performance.

C is (usually) faster than C++, but I wouldn't want Bitcoin's source code to be a monster like the Linux kernel, even if it was slightly faster (which isn't necessarily to be the case).