New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recursive signatures #6818
Comments
Comment author: @yallop PR #4899 is similar, but suggests changing the semantics of the existing 'module type' construct to support recursion. As Jacques said, that's not a workable approach, since it breaks backwards compatibility. The approach I'm proposing here -- adding an optional 'rec' -- is entirely backwards compatible. |
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
Original bug ID: 6818
Reporter: @yallop
Status: acknowledged (set by @damiendoligez on 2015-06-15T15:07:29Z)
Resolution: open
Priority: normal
Severity: feature
Category: typing
Related to: #4899
Monitored by: runhang
Bug description
It would be useful to have support for recursive signatures. The most common need is in code involving first-class modules, where I'd like to write
Of course, there's a workaround, but it's rather clunky:
Now that we have both recursive and non-recursive type bindings it would be more uniform to also support both recursive and non-recursive module type bindings.
The text was updated successfully, but these errors were encountered: