caml-list - the Caml user's mailing list
 help / Atom feed
From: Boris Yakobowski <>
Cc: The Caml Mailing List <>
Subject: Re: [Caml-list] Deprecating -annot
Date: Fri, 9 Nov 2018 10:52:36 +0100
Message-ID: <> (raw)
In-Reply-To: <>

[-- Attachment #1: Type: text/plain, Size: 1533 bytes --]


On Thu, Nov 8, 2018 at 10:16 AM Nicolás Ojeda Bär <> wrote:

> The main reason for the deprecation is that it is superseded by
> .cmt-based infrastructure (as exploited by e.g. merlin, ocp-index,
> etc).

I was thinking about the good old .annot days (finally, type information in
emacs!), as well as of the not-so-good-ones (generation of the .annot file
that took longer than the compilation of the file). By large, .cmt files
have been a improvement in my experience.

That being said, there is one use of .annot files that I have not been able
to port to .cmt files: finding (unsafe) uses of or
Pervasives.equal in a codebase. My workflow is as follow:
- generate the .annot files
- grep for Pervasives.( = )  or with sufficient context
- dismiss all calls that occur on a basic type (typically scalars)
- check all remaining calls for an use on an abstract or possible-cyclic

Clearly this process is not exactly efficient, and would be much better
handled by a compiler warning -- especially since the compiler would be
able to notice type equalities such as t = int coming from the context. So
this message must not be understood as a real suggestion to keep .annot
file in the end :)

Caml-list mailing list.  Subscription management and archives:
Bug reports:

[-- Attachment #2: Type: text/html, Size: 1685 bytes --]

  reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-08  9:16 Nicolás Ojeda Bär
2018-11-09  9:53 ` Boris Yakobowski [this message]
2019-02-23 18:10 ` Max Mouratov

Reply instructions:

You may reply publically 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='' \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

caml-list - the Caml user's mailing list

Archives are clonable: git clone --mirror

AGPL code for this site: git clone public-inbox