Hacker News new | ask | show | jobs
by s-zeng 1415 days ago
Taking a moment to plug https://dhall-lang.org/, a truly non-imperative solution in this space
1 comments

As much as I like Dhall, it needs unions like in typescript so we don't see `Some` littered everywhere.
Like other forms of subtyping, unions make type inference much harder - typically undecidable. This is, of course, incompatible with guaranteed termination.