I am pleased to announce a new release of visitors, a tool that automatically generates visitor classes for algebraic data types.
The new features of this release are as follows:
-
visitorsnow decorates every generated method with a type annotation. This can help understand the generated code. More importantly, this enables type-directed disambiguation, sovisitorsnow supports situations where two distinct types have a field or a data constructor by the same name. (Reported by Guillaume Boisseau. Contributed by Sacha Élie-Ayoun.) -
Install a new executable command,
visitors_preprocess, to preprocess an OCaml source file and see the result. -
Update
Makefile.preprocessto usevisitors_preprocess. -
Require
ppxlibversion 0.37.0 or newer.