Re:Swift is a more convenient Rust
by lukeh on Friday September 06, 2024 @07:43AM
(#41465235)
Well, that article also presents a pure Swift (non-Foundation) solution, WeakRef.
[ Parent
| on HN ]
Yes, I mentioned that. There’s probably a better example but this is off the top of my head as something I experienced myself. My point is that the blog post suggests the Swift native version then discusses NSMapTable without ever calling out the fact that you can’t use the latter cross-platform. I find that endemic in the Swift community, there’s a base assumption you’re coding on an Apple platform (and often specifically on iOS!), it adds an additional barrier to getting things done.