4 ms·
> lack of exceptions make almost everything that C++ brings to the table useless[1]. sorry what ? constexpr (https://github.com/arduino-libraries/Arduino_EdgeC
by jcelerier 4y ago
> lack of exceptions make almost everything that C++ brings to the table useless[1].
sorry what ? constexpr (https://github.com/arduino-libraries/Arduino_EdgeControl/blob/48858179293228a84c323184be7c148303d2e81f/examples/Basic/0-5V_Input/0-5V_Input.ino https://github.com/arduino-libraries/Arduino_EdgeControl/blo...), templates (https://github.com/arduino-libraries/Temboo/blob/dcce3007eb5158d9360fd56531e7d8d22b3c5f5c/src/utility/MQTTClient.h https://github.com/arduino-libraries/Temboo/blob/dcce3007eb5...), etc. are all widely used in the Arduino community. I've recently done some work involving C++20 coroutines on an RP2040. etc etc...
And even without exceptions, RAII can still help ensuring a large amount of invariants automatically.