Skip to content

Polymorphic Recursion #3688

Discussion options

You must be logged in to vote

Yeah, type inference for polymorphic recursion is undecidable, actually! The ocaml docs have an ok description of the general problem here and their solution requires universal quantification. Haskell has a similar problem and solution.

Gleam couldn't be changed to support no indirection without also adding universal quantification, which I think we wouldn't want.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@hayleigh-dot-dev
Comment options

Answer selected by EthanOlpin
@lpil
Comment options

lpil Oct 18, 2024
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants