From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id CCF8DBC75 for ; Wed, 16 Feb 2005 11:12:23 +0100 (CET) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.193]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j1GACN1c027523 for ; Wed, 16 Feb 2005 11:12:23 +0100 Received: by rproxy.gmail.com with SMTP id a36so124638rnf for ; Wed, 16 Feb 2005 02:12:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=hzjS8+NVEKTaPdaMGqfqWch4s+j3Q9ZdL4aItHzOhRtlhQYH15Y2eGREInFgDe/jx1MwNr5P2xWfe/nIRDRG3ZKxXHBoIg0wkJ62nMmxV3iIhPhWA7LiM0b8MHvZNU5+Skk/YGWx4YjN9CE21baLhNqeSmKepA2B61qn2MgCJQU= Received: by 10.38.97.5 with SMTP id u5mr28966rnb; Wed, 16 Feb 2005 02:12:22 -0800 (PST) Received: by 10.38.65.58 with HTTP; Wed, 16 Feb 2005 02:12:22 -0800 (PST) Message-ID: <7f8e92aa0502160212753b31ea@mail.gmail.com> Date: Wed, 16 Feb 2005 12:12:22 +0200 From: Radu Grigore Reply-To: Radu Grigore To: Jacques Garrigue Subject: Re: [Caml-list] Polymorphic variant typing Cc: dubochet@urbanet.ch, caml-list@yquem.inria.fr In-Reply-To: <20050216.154022.71085981.garrigue@math.nagoya-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <7bf1f3b95c18eeda0ed169eb7f73d6f0@urbanet.ch> <20050216.093635.226803934.garrigue@math.nagoya-u.ac.jp> <86796353528dde143b07545f7e94ed17@urbanet.ch> <20050216.154022.71085981.garrigue@math.nagoya-u.ac.jp> X-Miltered: at nez-perce with ID 42131C87.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 wrote:01 avoiding:01 o'caml:01 model:01 ocaml:01 notations:01 ocaml:01 compiler:01 crystal:98 ...:98 polymorphic:01 typing:01 jacques:01 variant:02 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.2 X-Spam-Level: On Wed, 16 Feb 2005 15:40:22 +0900 (JST), Jacques Garrigue wrote: > From: Gilles Dubochet > > Just to make it crystal clear for me: You say that the "main reason for > > this choice is avoiding making rows explicit", does this mean that the > > O'Caml team feels that row-based type information is too complicated > > for an average user since you either steer away of hide it in an object > > model? > > Basically yes. Hence the clever tricks to have types containing hidden > row variables, like #t, [< t], [> t]. [...] Perspective from an ocaml beginner & someone who doesn't know about row variables (that would be me): the [> t] and [< t] notations seem very intuitive. However, now that I know they hide something, I'd like to know what (and I'll have to rely on google instead of the ocaml compiler for that). -- regards, radu http://rgrig.idilis.ro/