Skip to content

Instantly share code, notes, and snippets.

@LukeDefeo
LukeDefeo / struct_and_inheritance.swift
Last active September 28, 2015 20:34 — forked from AliSoftware/struct_vs_inheritance.swift
Swift-Struct-Inheritance
// #!Swift-.
import Foundation
// MARK: - () classes
// Solution 1:
// - Use classes instead of struct
// Issue: Violate the concept of moving model to the value layer
// http://realm.io/news/andy-matuschak-controlling-complexity/