Re:C23: A Slightly Better C
by spacechild1 on Sunday January 21, 2024 @04:39PM
(#39083343)
How is RAII a problem on embedded platforms? It is basically about scoped cleanup, something you would otherwise have to do manually.
Re:C23: A Slightly Better C
by actionfromafar on Monday January 22, 2024 @07:41AM
(#39088854)
Not sure what waa meant but what comes to mind to me who has dabbled in embedded is that in C it’s painfully clear how long “objects” live and when you tear them down and how. In C++ stuff can easily “happen” at an inopportune moment.
[0] https://www.cppstories.com/2022/cpp-init-book/