Skip to content

elegantchaos/Coercion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test results Latest release swift 5.2 shield swift 5.3 shield swift 5.4 shield swift 5.5 shield swift 5.6 shield Platforms: macOS, iOS, tvOS, Linux

Coercion

Support for coercing basic data types.

Provides:

  • coercion protocols which define asInt, asString and so on
  • implementations of these protocols for foundation data types
  • a Converter protocol which can take an Any object and turn it into a known type using the coercion protocols
  • subscript operators for Dictionary which look up a key by type: asInt:, asString: etc, performing coercion where possible

About

Swift type coercion support.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages