Leveraging C++

Thread Starter

Futurist

Joined Apr 8, 2025
879
I've recently started exploring C++ and might start using that language for my STM32 projects. I decided to look at which language features are more relevant and which are less. So I did some digging and found that just a few features would in-effect give me a more powerful C without any of the baggage that comes with the OO stuff.

I began with references and this is very helpful, lets us avoid the pitfalls of pointers at no cost, a genuine language capability.

But I'm also going to understand typed fixed length arrays, consteval (e.g. lookup tables) and a few more.

These come under the "zero cost abstractions" heading I believe.
 
Top