Hacker News new | ask | show | jobs
by amw-zero 2203 days ago
I would use the “smart constructor” pattern for this: https://draptik.github.io/posts/2020/02/10/fsharp-smart-cons...

Things like that require runtime logic, there’s no way around that.