[Better support for heterogeneous containers in Swift]
Any, [Any] and [String: Any] are type-erased values which allow for the storage of heterogeneous data structures.
Typically these erased structures are difficult to work with and are often seen with code that utilises JSONSerialization or Cocoa API’s such as Bundle and UserDefaults.
Eumorphic aims to ease the burden of use by providing a light sugar over these erased types.
Eumorphic
[Better support for heterogeneous containers in Swift]
Any
,[Any]
and[String: Any]
are type-erased values which allow for the storage of heterogeneous data structures. Typically these erased structures are difficult to work with and are often seen with code that utilisesJSONSerialization
or Cocoa API’s such as Bundle and UserDefaults. Eumorphic aims to ease the burden of use by providing a light sugar over these erased types.Example