News for hackers. Stuff that matters.
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.
Re:C23: A Slightly Better C by mgaunard on Monday January 22, 2024 @09:45AM (#39090009)
Same in C++: happens at the end of the scope. You precisely control where that is.