caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Antoine Delignat-Lavaud <antoine.delignat-lavaud@dptinfo.ens-cachan.fr>
To: blue storm <bluestorm.dylc@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Why does value restriction not apply to the empty list ?
Date: Sat, 10 Jan 2009 18:48:18 +0100	[thread overview]
Message-ID: <4968DF62.1030306@dptinfo.ens-cachan.fr> (raw)
In-Reply-To: <527cf6bc0901100556n40b54b0amff84a7707aacb0ae@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 482 bytes --]

blue storm a écrit :
> OCaml uses a relaxed value restriction : types in covariant-only
> positions (as the 'a in 'a list) are generalized. See paper [3] of
> http://caml.inria.fr/about/papers.en.html :
> http://caml.inria.fr/pub/papers/garrigue-value_restriction-fiwflp04.pdf
>   
Thank you for your short but accurate explanation. I would have known, 
since I cited this paper in my query, if only I was more familiar with 
ocaml's type inferer.

Regards,
Antoine Delignat-Lavaud

[-- Attachment #2: antoine_delignat-lavaud.vcf --]
[-- Type: text/x-vcard, Size: 274 bytes --]

begin:vcard
fn:Antoine Delignat-Lavaud
n:Delignat-Lavaud;Antoine
org;quoted-printable:ENS Cachan;=C3=89l=C3=A8ve au d=C3=A9partement d'informatique
adr;dom:;;M310;Cachan
email;internet:antoine.delignat-lavaud@dptinfo.ens-cachan.fr
tel;cell:0608401862
version:2.1
end:vcard


  parent reply	other threads:[~2009-01-10 17:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-10 11:34 Antoine Delignat-Lavaud
2009-01-10 12:59 ` [Caml-list] " Richard Jones
2009-01-10 13:10   ` Arnaud Spiwack
     [not found] ` <527cf6bc0901100556n40b54b0amff84a7707aacb0ae@mail.gmail.com>
2009-01-10 17:48   ` Antoine Delignat-Lavaud [this message]
2009-01-11 16:31 ` Xavier Leroy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4968DF62.1030306@dptinfo.ens-cachan.fr \
    --to=antoine.delignat-lavaud@dptinfo.ens-cachan.fr \
    --cc=bluestorm.dylc@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).