From: Hendrik Tews <tews@tcs.inf.tu-dresden.de>
To: Caml-list <caml-list@inria.fr>
Subject: empty type (was [Caml-list] Please help a newbie)
Date: Mon, 6 Aug 2001 12:02:15 +0200 (CEST) [thread overview]
Message-ID: <15214.27431.174543.115555@gargle.gargle.HOWL> (raw)
In-Reply-To: <3B6DBC9A.1E6B82A2@maxtal.com.au>
In Ocaml, the categorical initial also exists,
thanks to polymorphic variants:
type void = []
It is my contention that the type of procedures is wrong
in ocaml precisely because they return unit, when they
_should_ be returning void (that is, nothing).
So what typing rules do you use for the empty type? Usually a
type theory is inconsistent as soon as one has an inhabitant of
the empty type.
Bye,
Hendrik
-------------------
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-08-06 10:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-03 10:58 Johann Spies
2001-08-03 13:26 ` [Caml-list] Re: your mail Francois Pottier
2001-08-03 17:42 ` Vitaly Lugovsky
2001-08-03 18:23 ` [Caml-list] Please help a newbie md5i
2001-08-05 21:37 ` John Max Skaller
2001-08-06 10:02 ` Hendrik Tews [this message]
2001-08-07 17:32 ` empty type (was [Caml-list] Please help a newbie) John Max Skaller
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=15214.27431.174543.115555@gargle.gargle.HOWL \
--to=tews@tcs.inf.tu-dresden.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