[ANN] New release of visitors

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:

  • visitors now decorates every generated method with a type annotation. This can help understand the generated code. More importantly, this enables type-directed disambiguation, so visitors now 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.preprocess to use visitors_preprocess.

  • Require ppxlib version 0.37.0 or newer.

2 Likes