Hacker News new | ask | show | jobs
by JCoder58 2229 days ago
You want F#.

> If I want to write a numeric value in a json output I'm creating that will be consumed by some other system, I want that thing to represent exactly that and spit an error if I ever try to assign something else, such as a string

https://fsharpforfunandprofit.com/posts/serializating-your-d...

> I need to be able to say, "this number is not just any number, this is actually a temperature measurement in Celsius"

https://docs.microsoft.com/en-us/dotnet/fsharp/language-refe...