News for hackers. Stuff that matters.
Re:Swift is a more convenient Rust by frizlab on Saturday January 31, 2026 @07:14PM (#46842282)
I don’t which Swift developers you are talking to, but let the record know I don’t and use enum quite a lot. And I don’t find it particularly painful though a bit verbose at times.
Re:Swift is a more convenient Rust by willtemperley on Saturday January 31, 2026 @10:13PM (#46843298)
I think Swift enums are really well designed, but SwiftData doesn't really support them unfortunately and Observable has problems with reactivity and enums (works on iOS not macOS I've found).

So lots of optionals might well be the better path here.