Skip to content

2.0.0 - Swift 5.1 Package

Compare
Choose a tag to compare
@KyNorthstar KyNorthstar released this 11 Aug 22:02
· 41 commits to master since this release
82d72fc

New Features

  • Rebranded to Lazy Containers, since this repo focuses on providing containers that lazily hold values, but doesn't focus providing patterns for how to do this (although, it does provide the tools to do that).
  • You can now use Lazy, ResettableLazy, and FunctionalLazy as property wrappers!
  • FunctionalLazy is now passed by value, rather than by reference.
  • You can still lazily initialize the value held within a Lazy, ResettableLazy, nor a FunctionalLazy in a non-mutating way, but you can no longer manually set it. This remains consistent with the goal of this repo (to provide a way to lazily initialize a value). In order to set a value-passed instance in a non-mutating way, see Swift-Safe-Pointer.
  • You can now create an instance of any lazy container with a value already initialized inside it. This is useful when you need a uniform API (for instance, when implementing a protocol that requires a Lazy), but require it to already hold a value up-front.
  • Added repo format which allows this to be a Swift Package.
  • Added unit tests to continue proving stability.