From: John Max Skaller <skaller@maxtal.com.au>
To: Hendrik Tews <tews@tcs.inf.tu-dresden.de>
Cc: Caml-list <caml-list@inria.fr>
Subject: Re: empty type (was [Caml-list] Please help a newbie)
Date: Wed, 08 Aug 2001 03:32:25 +1000 [thread overview]
Message-ID: <3B702629.52BEDCBC@maxtal.com.au> (raw)
In-Reply-To: <15214.27431.174543.115555@gargle.gargle.HOWL>
Hendrik Tews wrote:
> 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.
Felix has statements and expressions. The typing
rule is:
f:T -> void, a:T
|- f a: void
Note that 'f a' cannot occur inside an expression, indeed,
it isn't an expression but a statement.
--
John (Max) Skaller, mailto:skaller@maxtal.com.au
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
New generation programming language Felix http://felix.sourceforge.net
Literate Programming tool Interscript
http://Interscript.sourceforge.net
-------------------
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
prev parent reply other threads:[~2001-08-07 17:32 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 ` empty type (was [Caml-list] Please help a newbie) Hendrik Tews
2001-08-07 17:32 ` John Max Skaller [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=3B702629.52BEDCBC@maxtal.com.au \
--to=skaller@maxtal.com.au \
--cc=caml-list@inria.fr \
--cc=tews@tcs.inf.tu-dresden.de \
/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