Experimental API for Reads and Writes protected via Phantom types
-
Updated
Jun 8, 2022 - Swift
Experimental API for Reads and Writes protected via Phantom types
In this project, we are trying to demonstrate the power of phantom types. Based on a class custom type, we show how we could handle generic bank transfers to local account (USD to USD) and specific transfers (USD to EUR) while adding type-checks at compile time.
Add a description, image, and links to the phantom-types topic page so that developers can more easily learn about it.
To associate your repository with the phantom-types topic, visit your repo's landing page and select "manage topics."