We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

darrix • 4 years ago

Hi Jonathan,
You can achieve this with the same type safety but a little less plumbing by using pattern matching in your parameters, e.g.,

let doSomething (Name name : Name) (Age age : Age ) (Address address : Address) =
printfn $"{name} / {age} / {address}"

It doesn't feel intuitive to me yet but it is concise.

(Oh! Like the blog redesign too)