From: Simon Helsen <helsen@informatik.uni-tuebingen.de>
To: Caml Mailing-list <caml-list@inria.fr>
Subject: recursive datatypes
Date: Tue, 11 Nov 1997 17:51:35 +0100 (MET) [thread overview]
Message-ID: <Pine.A32.3.96.971111174455.16668X-100000@meijin> (raw)
Why does Caml type-check the following program? It wouldn't in Standard ML
and I don't see the use for it, as it may lead to infinite programs...
(I don't have a french keyboard)
Pourquoi est le programme ci-desous bon type ? C'est ne pas le
cas en Standard ML et je ne comprend pas l'usage pour ca parce que le
programme peut eventuellement cours a l'infini...
type 'a tree = Tree of 'a
let f x = Tree (f x)
----------------------- Simon Helsen ------------------------
-- Wilhelm-Schickard-Institut fuer Informatik --
-- Arbeitsbereich Programmierung (PU) --
-- Universitaet Tuebingen, Germany --
-------------------------------------------------------------
-- http://www-pu.informatik.uni-tuebingen.de/users/helsen/ --
next reply other threads:[~1997-11-12 7:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-11-11 16:51 Simon Helsen [this message]
1997-11-12 15:05 ` Xavier Leroy
1997-11-12 16:16 ` Michel Quercia
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.A32.3.96.971111174455.16668X-100000@meijin \
--to=helsen@informatik.uni-tuebingen.de \
--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