Re:Dynamic type systems are not inherently more open
by rwmj on Sunday January 19, 2020 @09:18AM
(#22091534)
When writing OCaml, if I'm unsure of the type I set the type to some impossible value, compile it, and the compiler tells me what the type really is.
[ Parent
| on HN ]
Re:Dynamic type systems are not inherently more open
by hnra on Sunday January 19, 2020 @09:37AM
(#22091622)
I Haskell you simply put a "_" in the annotation and the compiler suggests the correct type.