Features
-
OCaml RFC 52 (proposal): introduces a
[%call_pos]attribute that auto-fills a labelledLexing.positionparameter with the call-site location. Still open. #52 -
OCaml trunk (primitive aliases): merged new syntax
external foo = Bar.bazto alias existing primitives, copying C names and representations. The typed form unifies the declared type with the source. #13377 -
OCaml stdlib (Format): merged
Format.pp_print_iarrayfor pretty-printing immutable arrays. #14724 -
OCaml stdlib (Atomic): proposed
Atomic.fold_updateto perform an atomic update and return the new value. Naming is under active discussion. #14725
Compatibility and Releases
- OCaml trunk (ocamltest): merged a
coldaction that skips tests unlessOCAMLTEST_COLD_TESTSis set, excluding slow tests from default CI runs. #14713
Fixes
-
OCaml trunk (typechecker): merged the "keep expansion" change, tracking type-abbreviation expansions as first-class nodes. Fixes non-termination, incorrect principality, and missed ambivalence across five long-standing bugs. #11648
-
OCaml 5.5 (ephemeron GC): merged a fix for ephemeron orphaning that left unmarked ephemerons on the live list, causing assertion failures in debug builds. Trunk fixes for related bugs are in review. #14718, #14734
-
OCaml trunk (error messages): merged a hint suggesting type annotations when a GADT equation variable escapes its scope, replacing the previously unactionable "ambiguous" error. #14695
-
OCaml trunk (typing): proposed a fix for a spurious syntactic-arity error when a function type contains a module-dependent arrow. #14721