Re:The Crystal Programming Language
by tigershark on Monday April 16, 2018 @03:12AM
(#16847201)
You can in F#.
https://docs.microsoft.com/en-us/dotnet/fsharp/tutorials/typ...
[ Parent
| on HN ]
That says you need a JSON schema file, which is deciding the type up front and basically how Go works too.
You don't necessarily need a schema file. You can take a sample document as input for an inferred type. This is compile type meta programming
https://fsharp.github.io/FSharp.Data/
https://medium.com/@maximcus/magic-of-f-type-providers-225b1...