Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Hendrik Tews <tews@t...>
Subject: empty type (was [Caml-list] Please help a newbie)
   	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.


Bug reports:  FAQ:
To unsubscribe, mail  Archives: