Experiment: Lazy Objects in Swift
A proof of concept, exploring a potential implementation of lazy immutable objects in Swift. How can we make lazily initialized objects reusable and improve mutation semantics? This article starts with a few lines of pseudo code and explores a promising implementation from there on. You can find the full solution, including unit-tests, on GitHub.