News for hackers. Stuff that matters.
Re:Swift is a more convenient Rust by usamoi on Saturday January 31, 2026 @06:34PM (#46842037)
I really don't understand what's the point of such comparisons. Swift uses subtyping, while Rust uses typeclasses. Even looking only at their type systems, the two are completely different. You can't assume they are similar just because they both use the Latin alphabet.
Re:Swift is a more convenient Rust by slavapestov on Saturday January 31, 2026 @06:38PM (#46842064)
> Swift uses subtyping, while Rust uses typeclasses. Even looking only at their type systems, the two are completely different.

What does it mean to “use” subtyping vs typeclasses? Swift protocols are essentially typeclasses with associated types, just like Rust traits.