Ancestors

Toot

Written by Christoph Berger on 2025-01-28 at 15:16

Silent observation shouldn't affect the observed. Sometimes, however, you can' avoid to affect the object you observe. For example, to track a data structure across its lifetime, you'd need to hold a pointer to it. But an active pointer to an object prevents it from getting garbage collected.

A catch-22?

Say hello to weak pointers. More on this in the Spotlight section of the latest Applied Go Weekly Newsletter issue.

https://newsletter.appliedgo.net/archive/2025-01-26-a-weak-connection-is-still-a-connection/?utm_source=appliedgo-mastodon

[#]golang

=> More informations about this toot | More toots from christophberger@c.im

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113906639462616322
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
312.387248 milliseconds
Gemini-to-HTML Time
0.326826 milliseconds

This content has been proxied by September (3851b).