From: Alain Frisch <frisch@clipper.ens.fr>
To: Diego Olivier Fernandez Pons <FernandezPons@iFrance.com>
Cc: Bruno Pagano <bpagano@free.fr>, Caml <caml-list@inria.fr>
Subject: Re: [Caml-list] Function call with a list of parameters
Date: Fri, 14 Dec 2001 14:26:38 +0100 (MET) [thread overview]
Message-ID: <Pine.GSO.4.33.0112141419230.25856-100000@clipper.ens.fr> (raw)
In-Reply-To: <002e01c1836d$4ecfce00$0a53f2c3@Utilisateur>
On Thu, 13 Dec 2001, Diego Olivier Fernandez Pons wrote:
> I am afraid I do not understand how are cyclic types and OOP related.
> Could you explain more precisely this point ?
Cyclic (aka recursive) types are necessary to type such an expression:
# fun x -> x # run (); x;;
- : (< run : unit -> 'b; .. > as 'a) -> 'a = <fun>
Note that recursive constructed (variant,record) types are not considered
cyclic: type 'a tree = Leaf | Node of 'a * 'a. Except for objects,
recursive types are often unecessary; allowing them may hide or deplace
type errors, and make error messages difficult to understand. Moreover,
they sensibly complexify the implementation. I don't want to speak for the
OCaml team, but it seems reasonnable to consider that recursive types are
supported in OCaml only because of OOP ...
Alain
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next prev parent reply other threads:[~2001-12-14 13:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-11 16:31 Vincent Barichard <Vincent Barichard
2001-12-11 22:59 ` Chris Hecker
2001-12-11 23:26 ` Bruce Hoult
2001-12-12 9:35 ` Markus Mottl
2001-12-12 10:20 ` Vincent Barichard <Vincent Barichard
2001-12-12 22:31 ` Diego Olivier Fernandez Pons
2001-12-13 0:20 ` Bruno Pagano
2001-12-13 0:17 ` Diego Olivier Fernandez Pons
2001-12-14 13:26 ` Alain Frisch [this message]
2001-12-17 7:40 ` Francois Pottier
2001-12-12 13:52 ` Francois Pottier
2001-12-12 18:54 ` Chris Hecker
2001-12-12 19:04 ` Patrick M Doane
2001-12-12 23:49 ` Bruce Hoult
2001-12-13 7:41 ` Francois Pottier
2001-12-12 9:31 ` Jim Farrand
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=Pine.GSO.4.33.0112141419230.25856-100000@clipper.ens.fr \
--to=frisch@clipper.ens.fr \
--cc=FernandezPons@iFrance.com \
--cc=bpagano@free.fr \
--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