Compiled Chronicles

A software development blog by Angelo Villegas

Tag: Types

  • Swift: Phantom Types

    Playing around Swift for some time and you might have encountered a bug or errors on your code by summing up or multiplying variables with different types. Well, not really just Swift but a lot of programming languages have the possibility to calculate variables of different types resulting to possible bugs and/or errors. Phantom Types try to…