| Jorgen Grahn <grahn+nntp@snipabacken.se>: Aug 19 08:08PM On Thu, 2021-08-05, Richard wrote: >>that memory is the only resource that needs to be managed. > I'd say that it also implies an incomplete/shallow understanding of > both destructors and garbage collection. I suspect the difference is higher up, on the design level. When I design my C++ code I pay attention to ownership and lifetime, and I rarely or never find a need for garbage collection or reference counting/shared_ptr. Perhaps others optimize their designs for other aspects, and end up with a legitimate need for those things. And perhaps some libraries and frameworks force such designs (for example, I don't do GUIs). /Jorgen -- // Jorgen Grahn <grahn@ Oo o. . . \X/ snipabacken.se> O o . |
| You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment