HN2new | past | comments | ask | show | jobs | submitlogin

In f# you can use a single case discriminated union to get that behaviour fairly cheaply, and ergonomically.

https://fsharpforfunandprofit.com/posts/designing-with-types...

 help



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

Search: