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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 955747F249 for ; Thu, 1 Nov 2012 01:38:26 +0100 (CET) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of berenger@riken.jp) identity=pra; client-ip=134.160.33.162; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of berenger@riken.jp designates 134.160.33.162 as permitted sender) identity=mailfrom; client-ip=134.160.33.162; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of postmaster@postman.riken.jp designates 134.160.33.162 as permitted sender) identity=helo; client-ip=134.160.33.162; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="postmaster@postman.riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArkAAGzDkVCGoCGimWdsb2JhbABEwByDaQEBAQEBCAsLBxQngh4BAQU4QBELGAkWDwkDAgECAUUTCAEBiAK7SIt4gxeDJAOIWI0ehWmNVw X-IronPort-AV: E=Sophos;i="4.80,688,1344204000"; d="scan'208";a="161066729" Received: from postman2.riken.jp (HELO postman.riken.jp) ([134.160.33.162]) by mail4-smtp-sop.national.inria.fr with ESMTP; 01 Nov 2012 01:38:24 +0100 Received: from postman.riken.jp (postman2.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with SMTP id A70CF1260513 for ; Thu, 1 Nov 2012 09:38:21 +0900 (JST) Received: from [172.27.98.103] (rikad98.riken.jp [134.160.214.98]) by postman.riken.jp (Postfix) with ESMTPA id 76B501270063 for ; Thu, 1 Nov 2012 09:38:21 +0900 (JST) Message-ID: <5091C47D.4070501@riken.jp> Date: Thu, 01 Nov 2012 09:38:21 +0900 From: Francois Berenger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 MIME-Version: 1.0 To: caml-list@inria.fr References: <508F22BD.7010103@riken.jp> <026F32A8-2790-4CDD-A839-58655A8074CA@first.in-berlin.de> <508FE869.3070603@inria.fr> <508FFB12.9030307@gmail.com> <508FFE82.2050409@inria.fr> <50900466.2050000@gmail.com> <5090F66F.60803@erratique.ch> <50912619.9090004@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.11.1.3109 Subject: Re: [Caml-list] Why should I use .mli files? On 10/31/2012 10:43 PM, Gabriel Scherer wrote: >> [...] > (On the other side, I must note that your argument that ".ml/.mli > redundancy should be handled by tooling" could be reused in the > converse direction: the .mli (including documentation if present in > the source) could be produced from the .ml by tooling. I think that's the kind of tool that would entice me to use .mli files. How does this tool would know that some types from the .ml file are not to be exported in the .mli? Also, this tool should probably be able to update a .mli file, detect that a .mli file needs to be updated and maybe other things. It gives me the impression that with such a tool people would no more need to maintain both a .ml and a .mli file. I like the "centralization" of it. Regards, F.