Hacker News new | ask | show | jobs
by mjevans 2937 days ago
You could also validate on interface transition and use your own type internally; which is often what happens when using another language and exporting C style library bindings.