wnagrodzki / iOSProgrammingGuidelines

2 stars 0 forks source link

Choosing between struct and class #16

Open wnagrodzki opened 6 years ago

wnagrodzki commented 6 years ago

The choice between structs and classes is really the choice between value and reference semantics. A good rule of thumb is to consider value semantics first, and if you are not satisfied with the outcome consider reference semantics and compare both results.