News for hackers. Stuff that matters.
Re:Dynamic type systems are not inherently more open by yakshaving_jgt on Sunday January 19, 2020 @09:17AM (#22091528)
This is absolutely false. Not a single word you have written in this comment is true. This is a pervasive myth that you are perpetuating. If you had read the article, you would know that what you have said is demonstrably false.

There is nothing stopping you from operating on arbitrary JSON in Haskell.

Literally nothing.

Re:Dynamic type systems are not inherently more open by dboreham on Sunday January 19, 2020 @09:39AM (#22091635)
I suspect the parent wants to convert between JSON and typed records without needing the JSON to conform to the type.
Re:Dynamic type systems are not inherently more open by yakshaving_jgt on Sunday January 19, 2020 @09:57AM (#22091724)
Ok, but this works just fine in Haskell. If you have a well-formed JSON string and you want to parse it as a generic value, you can parse it into the Value type. If you have a typed record (something less general than a Value) and a JSON string that has enough of the structure to be parsed into that typed record, you can parse it into that typed record. If the JSON string has extra structure/data/fields your parser didn't expect, it's fine. Your JSON parser in Haskell can ignore those extra things. Just like any dynamic language.

All of this was demonstrated in the article.