News for hackers. Stuff that matters.
Re:The Crystal Programming Language by tigershark on Monday April 16, 2018 @03:12AM (#16847201)
Re:The Crystal Programming Language by IshKebab on Monday April 16, 2018 @06:06PM (#16853277)
That says you need a JSON schema file, which is deciding the type up front and basically how Go works too.
Re:The Crystal Programming Language by lenkite on Monday April 16, 2018 @09:02PM (#16854501)
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...