From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id 36A837F249 for ; Tue, 30 Oct 2012 15:51:41 +0100 (CET) Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of didier.cassirame@gmail.com) identity=pra; client-ip=209.85.214.182; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="didier.cassirame@gmail.com"; x-sender="didier.cassirame@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail1-smtp-roc.national.inria.fr: domain of didier.cassirame@gmail.com designates 209.85.214.182 as permitted sender) identity=mailfrom; client-ip=209.85.214.182; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="didier.cassirame@gmail.com"; x-sender="didier.cassirame@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ob0-f182.google.com) identity=helo; client-ip=209.85.214.182; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="didier.cassirame@gmail.com"; x-sender="postmaster@mail-ob0-f182.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlQBAHnoj1DRVda2kGdsb2JhbABEhhi9KAgjAQEBAQkJDQcUBCOCHgEBAQMBEgIPHQEbHQEDAQsGBQQBBgMKKgICIgERAQUBHAYTIodRAQMJBp1iYgkDi2FPgWyBCoUGChknDVmIdQEFDItrhUqBEwOVdY5hFimEEg X-IronPort-AV: E=Sophos;i="4.80,679,1344204000"; d="scan'208";a="179552851" Received: from mail-ob0-f182.google.com ([209.85.214.182]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 30 Oct 2012 15:51:40 +0100 Received: by mail-ob0-f182.google.com with SMTP id wc20so576167obb.27 for ; Tue, 30 Oct 2012 07:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=w6c1AdkMa6yDrYzmRXWAmVEFjceJBq32Kd800hJ0HPc=; b=dVh9EFwU/vjCCzEq3nfhXK582+aqBAJyqUUORCI4gBjx+4lrHKtvXVhAAfz1gOq2t0 WgOF9JXcSXgUDGTQIL7CFks6pDPUhCZ7uO/BCj+pV7B9eBj++OyIcsOiaUVrMmCBt1hA xDk5GJ36vJegxswTPo+6EW3upo1c/TrVBVx2ExhF3xNtOs+BJIPbAcZdEQwbNN5YTONc AG6LsQbGanp1p6c02G7SV5jyCnPd/oN0nbkVPp4NnriLForKTTe6BppJjpbaoZcaeKqi etRHyaf1M+eem1qYZLpi4lVfp5TJwuE/E4V4oC3FdfFFePmYvIK+zhG/l7ke1cvKjgMR ijnw== Received: by 10.182.193.7 with SMTP id hk7mr27722118obc.30.1351608699457; Tue, 30 Oct 2012 07:51:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.137.198 with HTTP; Tue, 30 Oct 2012 07:51:19 -0700 (PDT) In-Reply-To: References: <508F22BD.7010103@riken.jp> <026F32A8-2790-4CDD-A839-58655A8074CA@first.in-berlin.de> From: Didier Cassirame Date: Tue, 30 Oct 2012 15:51:19 +0100 Message-ID: To: Anton Lavrik Cc: Oliver Bandel , caml-list Content-Type: multipart/alternative; boundary=f46d0447868f680f9704cd47ecd0 Subject: Re: [Caml-list] Why should I use .mli files? --f46d0447868f680f9704cd47ecd0 Content-Type: text/plain; charset=UTF-8 2012/10/30 Anton Lavrik > On Tue, Oct 30, 2012 at 9:32 AM, Oliver Bandel > wrote: > > > > Am 30.10.2012 um 07:12 schrieb Anton Lavrik : > > > >> The biggest inconvenience with .mli files as I see it is that I have > >> to repeat myself and make related but slightly different changes in > >> two places when I change a module implementation. I would very much > >> prefer to declare and document public interfaces next to the > >> implementation and have language tooling take care of separate > >> compilation and documentation generation. > > > > > > ocamlc -i > > is your friend... > > "ocamlc -i" is useful, but it can't distinguish between public and > private interfaces and it wouldn't be helpful for generating > documentation. > > I don't think it's meant to be. It's just a tool to get a first draft, and it's up to the developer to edit it afterward if necessary. didier --f46d0447868f680f9704cd47ecd0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

2012/10/30 Anton Lavrik <alavrik@piqi.or= g>
>> The biggest inconvenience with .mli files = as I see it is that I have
>> to repeat myself and make related but slightly different changes i= n
>> two places when I change a module implementation. I would very muc= h
>> prefer to declare and document public interfaces next to the
>> implementation and have language tooling take care of separate
>> compilation and documentation generation.
>
>
> ocamlc -i
> is your friend...

"ocamlc -i" is useful, but it can't distinguish between= public and
private interfaces and it wouldn't be helpful for generating
documentation.


I don't think i= t's meant to be. It's just a tool to get a first draft, and it'= s up to the developer to edit it afterward if necessary.

didier
--f46d0447868f680f9704cd47ecd0--