Fresh Beginning
  • Home
  • Speaking
  • Reading
  • Github
  • Alma Mater
  • Contact
Subscribe
Tagged

Reference types

A collection of 1 post

Swift Value and Reference type semantics - Structs, Classes, Struct inside Class, Class inside Struct
memory semantics

Swift Value and Reference type semantics - Structs, Classes, Struct inside Class, Class inside Struct

Long ago Swift introduced a nice concept differentiating between value and reference semantic using Struct and Classes. As we all know, Struct is a value semantic, which means when value of one struct is assigned to another struct, only value is copied, not the reference - Which in other words

  • Jayesh Kawli
Jayesh Kawli Dec 22, 2019 • 9 min read
Fresh Beginning © 2022
Powered by Ghost