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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 441F37EEFA for ; Thu, 12 Nov 2015 16:15:02 +0100 (CET) IronPort-PHdr: 9a23:x9NuQxF2CBF2TPLrQ7Wmt51GYnF86YWxBRYc798ds5kLTJ75rsmwAkXT6L1XgUPTWs2DsrQf27eQ7/GrBjVIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/niqbuqtaMOk1hv3mUX/BbFF2OtwLft80b08NJC50a7V/3mEZOYPlc3mhyJFiezF7W78a0+4N/oWwL46pyv+YJa6jxfrw5QLpEF3xmdjltvIy4/SXEGDCI63QASGIO1i1tAgPF5Rz+FsP0syD6v+d5njKdMMLqV7cscTWk86pvDhTvjXFUGSQ+9TT7g8pxgaZsioantRh+i9rYaYeUOf44dL7Qe8EeREJMRNxYSy1YH476ZItZXLlJBvpRs4So/whGlhC5HwT5Qbq3kjI= Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=daniel.buenzli@erratique.ch; spf=None smtp.mailfrom=daniel.buenzli@erratique.ch; spf=None smtp.helo=postmaster@smtp.webfaction.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of daniel.buenzli@erratique.ch) identity=pra; client-ip=74.55.86.74; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="daniel.buenzli@erratique.ch"; x-sender="daniel.buenzli@erratique.ch"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of daniel.buenzli@erratique.ch) identity=mailfrom; client-ip=74.55.86.74; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="daniel.buenzli@erratique.ch"; x-sender="daniel.buenzli@erratique.ch"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@smtp.webfaction.com) identity=helo; client-ip=74.55.86.74; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="daniel.buenzli@erratique.ch"; x-sender="postmaster@smtp.webfaction.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AwAQAkrERWnEpWN0pewz4BAYFvhhACgXIPAQEBAQEBAQEQAQEBAQEICwkJIS6CLYIIAQEDASNWBQsLGgImAgJHEAYbiB4IsziQbAEBAQcBAQEBAR6BAYpRhFmDHC+BFQWWSI8ChzIQilSEYoNyOQEBAYJOgV2GLwEBAQ X-IPAS-Result: A0AwAQAkrERWnEpWN0pewz4BAYFvhhACgXIPAQEBAQEBAQEQAQEBAQEICwkJIS6CLYIIAQEDASNWBQsLGgImAgJHEAYbiB4IsziQbAEBAQcBAQEBAR6BAYpRhFmDHC+BFQWWSI8ChzIQilSEYoNyOQEBAYJOgV2GLwEBAQ X-IronPort-AV: E=Sophos;i="5.20,282,1444687200"; d="scan'208";a="187240113" Received: from mail6.webfaction.com (HELO smtp.webfaction.com) ([74.55.86.74]) by mail2-smtp-roc.national.inria.fr with ESMTP; 12 Nov 2015 16:15:01 +0100 Received: from [10.248.123.101] (global-5-144.nat-2.net.cam.ac.uk [131.111.5.144]) by smtp.webfaction.com (Postfix) with ESMTP id 17DA6209D3EC; Thu, 12 Nov 2015 15:14:59 +0000 (UTC) Date: Thu, 12 Nov 2015 15:14:58 +0000 From: =?utf-8?Q?Daniel_B=C3=BCnzli?= To: =?utf-8?Q?Soegtrop=2C_Michael?= Cc: "Mr. Herr" , "=?utf-8?Q?caml-list=40inria.fr?=" Message-ID: <1457A4B3A2894AC0858EE7C5FCBA3D7F@erratique.ch> In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A172CE3F675@IRSMSX102.ger.corp.intel.com> References: <0F7D3B1B3C4B894D824F5B822E3E5A172CE3F4C5@IRSMSX102.ger.corp.intel.com> <5644845B.6000801@freenet.de> <9463C955F1814F02BE3D330F5C3E4E17@erratique.ch> <0F7D3B1B3C4B894D824F5B822E3E5A172CE3F675@IRSMSX102.ger.corp.intel.com> X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Re: [Caml-list] Suppress warning from within Ocaml source file Le jeudi, 12 novembre 2015 =C3=A0 14:54, Soegtrop, Michael a =C3=A9crit : > as far as I understood the point is that it is questionable if using with= at all in such situations is a good idea. If with is not used and new fiel= ds are added, the compiler will warn about missing fields.=20=20 If with is not used it will not *warn*: your program won't compile. =20=20 > So one can argue that the point of this warning is that if a with already= does provide some fields "automatically" it is useful, but if the with doe= sn't really do anything you might be better of without the with and the war= nings you get when you extend the record. This misses the point. By using `with` I can instruct the compiler that I d= on't want my program not to compile if I add or remove fields. In the curre= nt system I can do this with any update I want to make to a record except i= f for some strange reason that update happen to touch all the current field= s of the record.=20=20 Daniel