I'm just getting into Swift. I was reading a book Teach Yourself Swift in 24 Hours by BJ Miller at the local bookstore, and I came across the concept of structs, a special keyword in Swift that you can use in place of the class keyword. I had never heard of this before, so it was interesting to see this new programming weapon that's available in Swift. Here's the difference between the two:
Structs are value types and classes are reference types.
The posts on this site are written and maintained by Jim Lynch. About Jim...