4 ms·
To speak to point 2, of course this is possible but the time it takes to do a GC is not determinable. As for point 3, just because it's in use, doesn't mean it
by banachtarski 13y ago
To speak to point 2, of course this is possible but the time it takes to do a GC is not determinable.
As for point 3, just because it's in use, doesn't mean it's correct. With the introduction of unique_ptr, most uses of new and delete can and should be factored out.
- dmitrygr 13y agoCan you give an example of any codebase not using any new or delete at all that compares in size? "Right or Wrong" are irrelevant in the face of "Practical or Not". The fact that all large pieces of serious code use new and delete would either imply that the author is smarter than all the people writing that code combined, or (more likely) he did not consider something w.r.t. the practicality of not using them. Let me go further and explain my original post in a more succinct fashion: One giant [[citation needed]] on every claim in this article, including, but not limited to, new and delete being useless.
- banachtarski 13y agoNo but it is the trajectory of the future and it's very practical. I'm not saying there aren't oddball cases that will require new and delete, but for the most part, it simply isn't necessary. As for the citation, if you are immersed in the C++ community in general (going native, c++ now, subreddits, irc, accu meetings, etc), it's the general feeling.
- dmitrygr 13y agoAppeal To Anonymous Authority This fallacy occurs whenever a person claims we should believe a proposition because it is also believed or claimed by some authority figure or figures — but in this case the authority is not named. http://goo.gl/ZmRQ2x http://goo.gl/ZmRQ2x