-
Notifications
You must be signed in to change notification settings - Fork 76
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
Promote val_modalities
to Stable
#3391
base: main
Are you sure you want to change the base?
Conversation
5b83bab
to
36215ea
Compare
36215ea
to
7ff35ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm currently running into an issue where
(* x.ml, with no mli *)
type t = T of unit
let t = T ()
let u = lazy t
(* y.ml *)
let _ @ uncontended = X.u
(* Error: This value is contended but expected to be uncontended. *)
I hypothesize (but have not checked) that this PR introduces this bug. Can you check?
This is #2967 missing a mode crossing spot. Will fix. Since we will push |
Well I just realized that the said mode crossing is already there for general variable lookup. What's missing is that the kind system don't know Do you encounter similiar issues where such |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should also update the documentation, now that we're putting the feature in stable.
@goldfirere Good point. Then we need documentation for portability and contention first, because Also, we agreed to revise the new mode syntax so that |
This PR promotes modalities on values descriptions and module declarations to
Stable
.There are no longer behaviors controlled by
mode_alpha
, but maybe it's fine to keep it for future convenience.I confirm that our internal code base builds without changes, with this PR.