Even after several years of programming in F#, it keeps me amazed.
Measures as type constraints (in combination with FSharp.UMX):
I use this code in the validation logic of our public API to validate and convert JSON into GUIDs with a measure, like GUID.
Awesome!
% converts Guid into Guid<'a>
[#]fsharp #dotnet
=> More informations about this toot | More toots from UrsEnzler@tooting.ch
And for all partial application fans, yes, I shortened it to:
=> More informations about this toot | More toots from UrsEnzler@tooting.ch This content has been proxied by September (ba2dc).Proxy Information
text/gemini