Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W37.2026 · 7–13 SepCore

Features

  • The parser now emits Pexp_hole / Pmod_hole for _ 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 -> 'a to 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 -> X now parses as T with module type S = (X -> X), matching the := form. Code relying on the old grouping fails to compile. (Merged, breaking.) #14978

Fixes

  • ocamlopt no longer segfaults on partial GADT matches. Translcore no longer uses local GADT equations from refutable patterns to infer parameter value kinds. #15035

  • Weak.get_copy no 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