News for hackers. Stuff that matters.
Re:The Sad Truth About C++ Copy Elision by pjmlp on Saturday April 03, 2021 @02:48PM (#26683602)
Maybe I am missing something, but when we care about unwind-protect, I would rather stay with safer languages than C++.
Re:The Sad Truth About C++ Copy Elision by gumby on Saturday April 03, 2021 @03:12PM (#26683821)
Unwind-protect is not just for memory; consider with-open-file.
Re:The Sad Truth About C++ Copy Elision by pjmlp on Saturday April 03, 2021 @03:24PM (#26683933)
Both Lisp examples, and mechanisms available in most modern languages with automatic memory management, no need to dive into unsafe C++ code for them.