4.01.0
版本发布时间: 2018-06-12 18:41:51
ocaml/ocaml最新发布版本:5.2.0(2024-05-13 20:27:08)
-
It is now possible to have several variant constructors or record fields of the same name in scope, and type information will be used to disambiguate which one is used -- instead of always using the last one. See this post for a more detailed description of the feature.
-
New warnings can be activated to warn about identifiers that are used after having been shadowed by an
open
construct. Theopen
keyword can be writtenopen!
to silence this warning (asmethod!
silences the method warning). -
The compiler now suggests possible typos on "unbound identifier" errors.
-
Infix application operators
(|>)
and(@@)
are added toPervasives
. -
The
-short-path
option changes the way the type-checker prints types to pick a short representation (eg.string
instead ofStringSet.elt
). -
This release saw a lot of polishing with sets of changes in many places: the type system for GADTs, compilation speed with
-bin-annot
, ocamlbuild, the test suite, low-level optimizations, etc.
See also: detailed list of changes.