Hacker News new | past | comments | ask | show | jobs | submit login

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.




Fair 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: