4 ms·
Last I checked you can't quite get away with using struct only in Swift because you need objects for indirection in recursive structs. But other than that I re
by tel 12y ago
Last I checked you can't quite get away with using struct only in Swift because you need objects for indirection in recursive structs.
But other than that I really, really hope that struct-only coding takes over in Swift given time... perhaps lots of time.
- josephlord 12y agoFair point the need to Box things is a bit of a nuisance. Also staying pure and immutable gets tricky as soon as you hit the Cocoa APIs but it is definitely a step in the correct direction and I still like it.