News for hackers. Stuff that matters.
Re:Swift is a more convenient Rust by saagarjha on Tuesday February 03, 2026 @05:11AM (#46869021)
There's definitely an indexing model, it's just that it's similar to that of a linked list. You can do all sorts of useful operations on a linked list. Not everything is O(n) in this world.
Re:Swift is a more convenient Rust by morshu9001 on Tuesday February 03, 2026 @02:18PM (#46875834)
You can't do any linked list operations on this other than "get next" which is still kinda different
Re:Swift is a more convenient Rust by saagarjha on Tuesday February 03, 2026 @11:39PM (#46881522)
Maybe it would be helpful if you have an example that you’re having trouble with.