News for hackers. Stuff that matters.
Re:Examples of Incorrect Abstractions in Other Languages by JCoder58 on Tuesday May 19, 2020 @07:42PM (#23241662)
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...

There are no comments on this comment yet.