caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] [ANN] New release of visitors
@ 2017-03-09 10:29 François Pottier
       [not found] ` <CACVN0Vvw_oxj9bpEUJe0QBo5ZNC7pVE2b5LJQ+e7hSx-HnMa7A@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: François Pottier @ 2017-03-09 10:29 UTC (permalink / raw)
  To: caml users


Dear OCaml users,

It is my pleasure to announce release 20170308 of the "visitors" package,
a syntax extension that makes it easy to generate visitor classes for
algebraic data structures.

The major additions since the previous release are as follows:

- A new option [polymorphic = true] allows generating visitor methods with
   polymorphic types. With [polymorphic = true], a type variable ['a] is
   handled by a visitor *function* [visit_'a], which is passed as an 
argument
   to every visitor method; whereas, with [polymorphic = false], a type
   variable ['a] is handled by a virtual visitor *method* [visit_'a].
   With [polymorphic = true], visitor classes compose better,
   and irregular algebraic data types are supported.

- A new variety of visitor, "mapreduce", computes a pair of a data structure
   (like a "map" visitor) and a summary (like a "reduce" visitor). This 
can be
   used to annotate every tree node with information about the subtree that
   lies below it.

There are also several minor new features and documentation additions.

To install the package via opam, use the following commands:

   opam update
   opam install visitors

The documentation is here:

   http://gallium.inria.fr/~fpottier/visitors/manual.pdf

Have fun,

--
François Pottier
francois.pottier@inria.fr
http://gallium.inria.fr/~fpottier/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-14 17:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-09 10:29 [Caml-list] [ANN] New release of visitors François Pottier
     [not found] ` <CACVN0Vvw_oxj9bpEUJe0QBo5ZNC7pVE2b5LJQ+e7hSx-HnMa7A@mail.gmail.com>
2017-03-09 18:33   ` François Pottier
2017-03-09 19:17     ` Gabriel Scherer
2017-03-09 20:22       ` François Pottier
2017-03-14 17:28         ` François Pottier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).