HN2
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Akronymus
10 days ago
|
parent
|
context
|
favorite
| on:
Parse, Don't Validate (2019)
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:
https://fsharpforfunandprofit.com/posts/designing-with-types...