Hacker News new | past | comments | ask | show | jobs | submit login

Phantom types can help with this. F#'s unit of measurement does something similar for numbers.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: