Newsgroups: comp.lang.lisp
From: Pascal Costanza <p...@p-cos.net>
Date: Thu, 12 Oct 2006 09:09:17 +0200
Local: Thurs, Oct 12 2006 3:09 am
Subject: Re: Lisp dinamism vs ML safety
Henry Bigelow wrote: That's not related to Lisp per se. But in the general case, dynamic > hi everyone, > just wanted to say thanks for the posts. very enlightening! > would it be possible to write a system of macros, say, to make > or is there a reason why this is impossible to do in lisp? typing and static typing are not compatible. In Common Lisp, there are a lot of cases where you can very conveniently change types at runtime. So a static check of types would be a great burden. Here is my standard example for this: (defclass person () (let ((p (make-instance 'person :name "Pascal"))) There is no chance to see upfront whether this program will fail or not, On the other hand, in a statically typed language (with a sufficiently So in the extreme case, dynamically typed and statically typed languages All other claims about static vs. dynamic types are bogus and unfounded, > why is it not possible to 'turn off' static typechecking for individual Because this would change the semantics of the language. > functions while compiling o'caml? Pascal -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||