From: "François Pottier" <francois.pottier@inria.fr>
To: caml users <caml-list@inria.fr>
Subject: [Caml-list] [ANN] New release of visitors
Date: Thu, 9 Mar 2017 11:29:36 +0100 [thread overview]
Message-ID: <b2485dac-7400-79ac-54d3-436ec76f6aca@inria.fr> (raw)
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/
next reply other threads:[~2017-03-09 10:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-09 10:29 François Pottier [this message]
[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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b2485dac-7400-79ac-54d3-436ec76f6aca@inria.fr \
--to=francois.pottier@inria.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox