Y
Hacker News
new
|
ask
|
show
|
jobs
by
danidiaz
2133 days ago
Phantom types can be useful when modelling currency: the "implementation" stays the same but you want to avoid summing two different currencies by mistake.
https://ren.zone/articles/safe-money