logoalt Hacker News

zemtoday at 6:44 PM0 repliesview on HN

nothing is stopping adult users from disabling the type checker and using your internal type directly. the newtype is just a private class mechanism that comes with better tooling to validate that you aren't breaking the intended contract.