From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=AWL,SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 93875BBC1 for ; Mon, 3 Mar 2008 22:04:27 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAABb2y0fVpUAUmWdsb2JhbACQdwEBAQEBBgQGCQgWnEU X-IronPort-AV: E=Sophos;i="4.25,439,1199660400"; d="scan'208";a="9846536" Received: from mail.gmx.net ([213.165.64.20]) by mail3-smtp-sop.national.inria.fr with SMTP; 03 Mar 2008 22:04:27 +0100 Received: (qmail invoked by alias); 03 Mar 2008 21:04:26 -0000 Received: from Yad0f.y.pppool.de (EHLO localhost) [89.60.173.15] by mail.gmx.net (mp042) with SMTP; 03 Mar 2008 22:04:26 +0100 X-Authenticated: #20477425 X-Provags-ID: V01U2FsdGVkX18/fIRkAa0/PBQgO0MWbLlHNaINjjWUvj4i4PwVYc XVAeMH7LurzHyW From: Michael Wohlwend To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] different records, same field name? Date: Mon, 3 Mar 2008 22:04:23 +0100 User-Agent: KMail/1.9.7 References: <47CC2D9F.6050109@starynkevitch.net> <200803031432.03002.ober.14@osu.edu> In-Reply-To: <200803031432.03002.ober.14@osu.edu> X-Face: S)[vu%Bha1d&ej9GfwAq~7C}A,y[B.uS}+D6'hb~xPwsxymw$fnCOaMe<=?utf-8?q?*bnUajSBR=5Fm=3FR=0A=09?=@V3;iX8[A}z`.%pEQ1r7iZhN8#ktTCBQ}&mkx>=RH&l|l6\]NZI@ MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200803032204.23590.micha-1@fantasymail.de> X-Y-GMX-Trusted: 0 X-Spam: no; 0.00; inference:01 ocaml:01 ocaml:01 inference:01 compiler:01 arises:01 caml-list:01 labels:03 let:03 fix:05 i'd:06 label:07 michael:07 michael:07 schrieb:08 Am Montag 03 M=E4rz 2008 20:32:02 schrieb Kuba Ober: > > I think that type inference in OCaml sometimes gets in the way of other > language features. I'd much rather see OCaml go in a direction where type > inference is performed on "as far as it can go" basis. I'm also the opinion, that type inference should be a feature. In the case = of=20 the record labels, if the compiler cannot decide the type of a record, an=20 error could be issued to let the user manually fix it. The duplicate record= =20 label thingy arises regulary on the list, but I think it will stay a featur= e=20 of ocaml :-) Michael