Timeline for Is there any reason to use C++ instead of C, Perl, Python, etc.?
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 5, 2018 at 16:27 | comment | added | Caleth | @Baldrickk in C you have to write cleanup code everywhere you use a resource. In C++, you write it once, in the definition of the resource. Both C and Java suffer from "resource used after disposed" and "leaks resource" bugs, because the cleanup is not automatic. Memory is not the only resource. | |
| Sep 5, 2018 at 12:58 | comment | added | Baldrickk | C will be as deterministic, but requires more work to ensure it actually happens when using malloc-ed memory | |
| Sep 5, 2018 at 10:06 | history | edited | Abhishek Keshri | CC BY-SA 4.0 |
grammar corrected
|
| Oct 10, 2017 at 18:34 | comment | added | Kyle Strand | Follow-up: Rust is now a contender in this field. See a basic RAII example and documentation about Rust's destructor methods. | |
| Feb 10, 2014 at 18:29 | comment | added | Kyle Strand | "C++: The only seriously deterministic option. Ask your doctor about it today." | |
| Sep 29, 2012 at 21:40 | history | edited | Motti | CC BY-SA 3.0 |
add missing comma
|
| Jul 25, 2011 at 12:44 | history | made wiki | Post Made Community Wiki by user32315 | ||
| Dec 22, 2010 at 19:24 | history | answered | Motti | CC BY-SA 2.5 |