Hacker News new | past | comments | ask | show | jobs | submit login

There is some explanation here: http://yosefk.com/c++fqa/defective.html#defect-10

Almost makes sense to me, except any feature in C and C++ can be criticized this way. In the C/C++ land you have access to hardware, plus almost every resource (except maybe function stack frames) is allocated and deallocated manually. In C/C++ you can make a mistake with virtually any operation that involves pointers, buffer overruns being perhaps the most popular one. So? Dump pointers altogether?

Or take "return" - basically same problem as with "throw" (although only within one function) - it can bypass some resource deallocations.

C/C++ is like a scalpel, it requires professionalism and great, great care and you can do wonderful, magical things with it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: