Re: Is it recommended/practical to use C++ instead of plain C ?
Posted: Thu Nov 14, 2019 5:56 pm
Late to the game, but the answer is absolutely "yes".
I've written C++ on the ESP32 since day one (2.5 years ago) and never regretted the decision to do so. As always, you have to know your tool, so if you know C++, then there's no reason not use it on this platform imho. With the xtensa-gcc 8.2 compiler there's now support for C++17 so you have access to the new modern tools too.
Now that we're on the topic, I have to drop this shameless self-plug here in case you're wondering how people have taken C++ (and abstractions) on this platform.
I've written C++ on the ESP32 since day one (2.5 years ago) and never regretted the decision to do so. As always, you have to know your tool, so if you know C++, then there's no reason not use it on this platform imho. With the xtensa-gcc 8.2 compiler there's now support for C++17 so you have access to the new modern tools too.
Now that we're on the topic, I have to drop this shameless self-plug here in case you're wondering how people have taken C++ (and abstractions) on this platform.