3 ms·
Even Stroustrup says that there are times garbage collection is the right solution. But, some people are surprised that there are times it isn't needed, and tha
by maxlybbert 12y ago
Even Stroustrup says that there are times garbage collection is the right solution. But, some people are surprised that there are times it isn't needed, and that garbage collection always brings the burden on unordered finalization (e.g., it's possible for an object's members to be finalized before the object, so finalizes must be written in a way that assumes very little about what is valid regarding data members).
- pjmlp 12y agoWhen Java appeared, there GC enabled system programming languages like Modula-3 and Oberon, with stack allocation. Modula-3 generics are good enough to even implement reference counting data structures. The going VM craziness of the last two decades pushed such languages away from the mainstream and thus younger generations get surprised by such approaches.