|
|
Subscribe / Log in / New account

New C features in GCC 13 (Red Hat Developer)

New C features in GCC 13 (Red Hat Developer)

Posted May 8, 2023 6:20 UTC (Mon) by eru (subscriber, #2753)
In reply to: New C features in GCC 13 (Red Hat Developer) by bartoc
Parent article: New C features in GCC 13 (Red Hat Developer)

Having encountered lambda in C++, I am convinced it is utter insanity to add this otherwise nice feature to a language that does not have automatic memory management. In C++ it is practically optimized for generating hard to find memory bugs. Please do not add it to C, please!


to post comments

New C features in GCC 13 (Red Hat Developer)

Posted May 10, 2023 0:31 UTC (Wed) by DemiMarie (subscriber, #164188) [Link]

Rust does not have these problems, but that is because lifetime mistakes using closures are caught by the compiler.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds