Re:Should I use a Swift struct or a class?
by RussianCow on Saturday July 04, 2015 @03:01PM
(#9831230)
That's a basic illustration of the difference between value types and reference types, but there are other differences between structs and classes as well (for instance, structs don't support inheritance or deinitializers).
[ Parent
| on HN ]