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
[Caml-list] Q: safe language
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-08-30 (08:45)
From: sebastien FURIC <sebastien.furic@t...>
Subject: Re: [Caml-list] Q: safe language

SooHyoung Oh a écrit :
> I heard Ocaml is "safe" language.
> Some questions about "safe" language:
> - Is it necessary for a safe language to have a type system?

 Typing ensures the functions to be applied the right way. So a safe
language must be typed, either dynamically (like LISP) or statically
(like O'Caml).

> - Isn't Lisp a safe language?

 You can consider it as a degenerated version of O'Caml with only one
type (object):
type object =
   | Integer of int
   | String of string
   | Cons of object * object
   | Nil
 Since functions (from objects to objects) can't fail (no core dump),
LISP may be considered as a safe language...

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: