From: Don Syme <Don.Syme@microsoft.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>,
"caml-list@inria.fr" <caml-list@inria.fr>
Subject: RE: [Caml-list] Re: How important are circular lists/recursive objects?
Date: Wed, 4 Apr 2007 09:45:59 +0100 [thread overview]
Message-ID: <7E24A64DB2F6F34E8C6002C4EB23449708715BD807@EA-EXMSG-C315.europe.corp.microsoft.com> (raw)
In-Reply-To: <jwv4pnwkdai.fsf-monnier+gmane.comp.lang.caml.inria@gnu.org>
Hi Stefan,
You might like to read my paper "Initializing Mutually Referential Abstract Objects", http://dx.doi.org/10.1016/j.entcs.2005.11.038, where I argue that this is a serious limitation, and argue the case for an alternative. Interestingly Scala is considering using the kind of recursive initialization I propose in the paper, though much more extensively than I originally proposed.
Cheers & best wishes,
Don
-----Original Message-----
From: caml-list-bounces@yquem.inria.fr [mailto:caml-list-bounces@yquem.inria.fr] On Behalf Of Stefan Monnier
Sent: 04 April 2007 05:53
To: caml-list@inria.fr
Subject: [Caml-list] Re: How important are circular lists/recursive objects?
> The question is: if this behavior was completely outlawed, and either you
> couldn't build up circular lists/recursive data structures of this type at
> all, or had to call special functions (List.circularize, say), to create
> them, would this be a signifigant problem? Does anyone actually use this
> construct, and if so, for what?
This is the case in SML: you need to go through a `ref' cell in order to
create a cycle. This has very rarely been presented as
a serious limitation. OCaml's trick is occasionally useful, but I don't
think anybody would lose her sleep over it.
Stefan
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
prev parent reply other threads:[~2007-04-04 8:46 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-02 23:55 Brian Hurt
2007-04-03 6:24 ` Gleb Alexeyev
2007-04-03 6:58 ` [Caml-list] " Ville-Pertti Keinonen
2007-04-03 7:00 ` Andrej Bauer
2007-04-03 12:09 ` Jon Harrop
2007-04-03 13:31 ` Bruno De Fraine
2007-04-04 23:28 ` Brian Hurt
2007-04-05 0:51 ` Jon Harrop
2007-04-03 12:49 ` Philippe Wang
2007-04-04 3:52 ` Stefan Monnier
2007-04-04 5:28 ` [Caml-list] " skaller
2007-10-04 17:48 ` Fabrice Marchant
2007-10-04 20:39 ` skaller
2007-10-04 21:36 ` rossberg
2007-10-04 22:25 ` skaller
2007-10-05 10:42 ` Dominique Martinet
2007-10-08 9:57 ` Andreas Rossberg
2007-04-04 8:45 ` Don Syme [this message]
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=7E24A64DB2F6F34E8C6002C4EB23449708715BD807@EA-EXMSG-C315.europe.corp.microsoft.com \
--to=don.syme@microsoft.com \
--cc=caml-list@inria.fr \
--cc=monnier@iro.umontreal.ca \
/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