Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - tichy

#1
Quote from: "Lutz"I have a new page on http://newlisp.org/index.cgi?FAQ">http://newlisp.org/index.cgi?FAQ , (not integrated yet into the menu) It talks also about the philosophical differences between Common Lisp and newLISP in the second paragraph:  "Why newLISP, why not one of the other standard LISPs ?" .

Lutz


from: http://newlisp.org/index.cgi?page=Differences_to_Other_LISPs">http://newlisp.org/index.cgi?page=Diffe ... ther_LISPs">http://newlisp.org/index.cgi?page=Differences_to_Other_LISPs



-------

VII.

'nil' and 'true' are boolean constants in newLISP. In Common Lisp and

Scheme they have an additional role as list terminator:



 ;; Common Lisp and Scheme

 (cons 'x nil) => (x)



 ;; newLISP

 (cons 'x nil) => (x nil)

-------



Not true for Scheme:



* scheme48

Welcome to Scheme 48 1.3 (made by root on Wed Aug 24 22:59:32 CEST 2005)

Copyright (c) 1993-2005 by Richard Kelsey and Jonathan Rees.

Get more information at http://www.s48.org/">http://www.s48.org/.



> (cons 'x nil)



Error: undefined variable

       nil



1> (cons 'x '())

'(x)



Scheme has separate notation for false (#f -- false, #t -- true),

and end of list '().



-------

X.

newLISP has only one operator for equality, the equal sign = in other

LISPs you may have 4, equal, eql, eq =, for expressions, symbols or

numbers, symbols and numbers.

........

-------



Common Lisp has more than 4:



eq, eql, equal, equalp, =, string=, string-equal, char=, char-equal.