Features
-
The parser now emits
Pexp_hole/Pmod_holefor_in expression and module positions instead of a parse error. PPX rewriters and Merlin can transform or inspect these nodes. #15051 -
Annotating a labelled argument with
[@@deprecated_unlabelled]permits unlabelled calls while emitting a deprecation alert. Enables gradual labelling of existing stdlib functions. (Open proposal.) #15054 -
Adds
Atomic.compare_and_exchange : 'a t -> expected:'a -> set:'a -> 'ato the standard library, returning the value found in the atomic. Label naming is still under discussion. (Open, under consideration.) #14912
Compatibility
T with module type S = X -> Xnow parses asT with module type S = (X -> X), matching the:=form. Code relying on the old grouping fails to compile. (Merged, breaking.) #14978
Fixes
-
ocamloptno longer segfaults on partial GADT matches.Translcoreno longer uses local GADT equations from refutable patterns to infer parameter value kinds. #15035 -
Weak.get_copyno longer shallow-duplicates continuations, which previously produced two handles to the same fiber and a segfault on double-resume. #14988 -
A consumer falling behind a fast producer of user events now reports lost events instead of a fatal
Failure("Runtime_events: corrupt stream"). Affects all 5.x releases. #15016 -
Set.{union, inter, diff}use physical-equality shortcuts when sets share structure, reducing complexity and increasing result sharing. #15009