Hacker News new | ask | show | jobs
by kingdomcome50 2203 days ago
It's idiomatic to use "opaque types" to achieve this in F#. In practice it is actually pretty analogous to the concept of a "constructor" in OOP.