Version française
Home     About     Download     Resources     Contact us    
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.

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