![]() |
|
|
|
|
11
6th March 06:14
External User
Posts: 1
|
Nathan Baum <nathan_baum@btinternet.com> writes:
Yes, right. I wasn't awake. Sorry. The point is that lisp is a dynamic language. It would be silly to signal an error when you enter: (defun bad () (node-label 12)) because you might enter: (defgeneric node-label (object) (:method ((self cons)) (first self)) (:method ((self t)) self)) just after, and then: (bad) would be perfectly good. If you want Haskell, how would a language diametrically opposed help? (Well, I understand that a Haskell with sexp syntax could be useful. At least, more readable than normal Haskell syntax... But sexpifying a programming language doesn't make it lisp.) -- __Pascal Bourguignon__ http://www.informatimago.com/ "You cannot really appreciate Dilbert unless you read it in the original Klingon" |
|
|
|
|
13
6th March 06:15
External User
Posts: 1
|
I think that Qi may be what you're looking for: http://www.lambdassociates.org/aboutqi.htm
"A language implemented in Common Lisp that generates efficient type secure Lisp programs which you can run on any machine." --Aaron |
|
|
15
7th March 20:14
External User
Posts: 1
|
Nathan Baum <nathan_baum@btinternet.com> writes:
* (defun typecheck (fun) (funcall fun)) TYPECHECK * (defun bad () (node-label 12)) BAD * (typecheck 'bad) debugger invoked on a TYPE-ERROR: The value 12 is not of type LIST. ;-) This is a subject over discussed from dynamically typed languages news groups to statically typed language news groups. There's no interest in it. If you want static typing, use Haskell. If you want dynamic typing, use Lisp. You can (try to) develop tools to automatically prove any program property you want, and I don't say I wouldn't use them with lisp if they were available, but they're not needed. IMO, for the kind of software I write (and what 99% of the programmers write I'd say), static typing impacts less than 1% of the success of the project. -- __Pascal Bourguignon__ http://www.informatimago.com/ The mighty hunter Returns with gifts of plump birds, Your foot just squashed one. |
|
|
|