What is Nostr?
Ben Cohen /
npub16tr…gwu7
2023-11-04 18:59:08
in reply to nevent1q…wt39

Ben Cohen on Nostr: npub1srcgh…xfms4 very nice re the reference cycle concern – the questioner sounds ...

npub1srcgh979ychudzrha7asxa7kvennpghghzzadmv5gcunfw5p72qs6xfms4 (npub1src…fms4) very nice

re the reference cycle concern – the questioner sounds like they were using to Swift when the main way to do async stuff was with callbacks and delegates, which force you to rely heavily on weak references in lots of places to avoid cycles. transitioning to async/await and structured concurrency makes this much better. you still need weak references occasionally, like for some data structures, but that's much more "this is the right tool for the job” kind of thing.
Author Public Key
npub16tr70s9khhuu6s0pf3we38rtggkchgq36f3zjdljt949kg6zt7mqn2gwu7