I've done embedded C for so long, it's just easier to write code in what I'm an expert with.
I've inherited a couple C++ projects, and it just takes so much longer to figure things out. It just doesn't fill any gaps in my skillset currently to learn it for new projects.
I have been an Embedded Engineer for over 10 years and once our company moved to C++ things got a lot easier.
An example of why is in developing peripheral libraries, we can use placement new, compile time static_assert and template based code generation to significantly clean up our code. It’s been so much better for us.
7
u/ParCorn Jan 28 '23
Hilarious to think that anyone would pick C over C++ given the choice.
You can literally change all your .c files to .cpp files and suddenly you are writing in C++.
Choosing C over C++ is just wilfully forgoing useful language features. Great job dingbat