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

 Sebastien.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners