2 ms·
C tends to borrow features from C++ over time. Although this is a GCC/clang extension, Microsoft has its own incompatible-but-mostly equivalent extension (__try
by skissane 3y ago
C tends to borrow features from C++ over time. Although this is a GCC/clang extension, Microsoft has its own incompatible-but-mostly equivalent extension (__try/__finally), and there is a proposal to add this as a standard feature to a future version of C – https://www.open-std.org/JTC1/SC22/WG14/www/docs/n2895.htm https://www.open-std.org/JTC1/SC22/WG14/www/docs/n2895.htm – albeit that proposal is based on Go's defer syntax. So there's a decent chance that – give it a few more years – something equivalent to this will become a standard C feature, at which point Linux might migrate to whatever the standardised syntax turns out to be.