Features
-
OCaml tuple projections: proposes 0-indexed
e.jsyntax for tuple component access, including labeled tuples. RFC PR #57 and implementation #14257 remain open. -
OCaml for…in: proposes a
for ... inloop construct over iterators. RFC PR #56 is open; discussion addresses HOF redundancy. -
OCaml typing recovery: adds a
-typing-recoveryflag so the type checker reports all errors in a file rather than stopping at the first. #14241 is open and work-in-progress. -
OCaml relocatable build: adds
--with-stublibsto./configureand makesld.confpaths relative to the file's directory. #14243 is open; part of RFC #53. -
OCaml Thread_local_storage: proposes a new
Thread_local_storagemodule alongsideDomain.DLS, sharing the same interface. #13355 is open.
Fixes
-
OCaml Lambda string sharing: merged;
Lambda.make_keynow treats string constants as shareable, allowing match arms with identical string results to compile to a single branch. #14259 -
OCaml TSan shadow stack: merged; fixes incorrect
__tsan_func_exitcall count during stack unwinding in the ThreadSanitizer runtime. #14213 -
OCaml
-initwith-e:ocaml -init file -e "script"previously ignored the init file; this PR loads it before executing the script. #14190 is open.
Compatibility
- OCaml Format Unicode: merged; documents that Unicode width changes in
Formatbetween 5.3 and 5.4 are intentional breaking changes, not regressions. Cherry-picked to 5.4. #14272