News for hackers. Stuff that matters.
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.
Re:Swift is a more convenient Rust by afavour on Friday September 06, 2024 @07:51AM (#41465294)
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.
Re:Swift is a more convenient Rust by naman34 on Saturday September 07, 2024 @08:56PM (#41477448)
And that article is from 2020. A lot has changed since.