logoalt Hacker News

mathisfun123yesterday at 6:24 AM4 repliesview on HN

i write C++ every day (i actually like it...) but absolutely no one is going to switch from C to C++ just for dtors.


Replies

kibwenyesterday at 7:40 AM

No, RAII is one of the primary improvements of C++ over C, and one of the most ubiquitous features that is allowed in "light" subsets of C++.

flohofwoeyesterday at 8:16 AM

> but absolutely no one is going to switch from C to C++ just for dtors

The decision would be easier if the C subset in C++ would be compatible with modern C standards instead of being a non-standard dialect of C stuck in ca. 1995.

gpderettayesterday at 10:48 AM

Of course not! Those that would have, already did!

Pay08yesterday at 6:38 AM

Weren't dtors the reason GCC made the switch?

show 1 reply