Fresh Beginning
  • Home
  • Speaking
  • Reading
  • Github
  • Alma Mater
  • Contact
Subscribe
Tagged

Phantom

A collection of 1 post

Swift

Using Phantom Types in Swift

Phantom types are special types in Swift. They are useful when you want to pass the variable with same structure but with different types. I would like to thank to This blog post for inspiring me to write this post. Also examples mentioned in the post are inspired by the

  • Jayesh Kawli
Jayesh Kawli Oct 29, 2016 • 3 min read
Fresh Beginning © 2022
Powered by Ghost