Re: Choosing between Lisps and Schemes

Liste des GroupesRevenir à cl lisp 
Sujet : Re: Choosing between Lisps and Schemes
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.lisp
Date : 12. Jan 2024, 11:22:53
Autres entêtes
Organisation : Stefan Ram
Message-ID : <LISP-20240112112134@ram.dialup.fu-berlin.de>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
On 11 Jan 2024 10:12:41 GMT, Stefan Ram wrote:
( SETQ DIFF
  ( LAMBDA( X )
...
            ( LIST 'SUM( DIFF( CADR X ))( DIFF( CADDR X )))))))))
That looks like some Lisp-1 (Scheme-type) dialect.

  For now, I'm using, IIRC, "NewLisp" and

( setq SETQ   setq   )
( SETQ NULL   null?  )
( SETQ ATOMP  atom?  )
( SETQ T      true   )
( SETQ CAR    first  )
( SETQ CDR    rest   )
( SETQ PROGN  begin  )
( SETQ LENGTH length )
( SETQ COND   cond   )
( SETQ APPEND append )
( SETQ CADR( lambda( X )( CAR ( CDR X ))))
( SETQ CADDR( lambda( X )( CAR ( CDR ( CDR X )))))

  . I was not able to convert "lambda" to uppercase, though.
  So, I have to write:

( SETQ DIFF
  ( lambda( X )
    ( COND
      ...

  .


Date Sujet#  Auteur
11 Jan 24 * Re: Choosing between Lisps and Schemes3Stefan Ram
12 Jan 24 `* Re: Choosing between Lisps and Schemes2Stefan Ram
12 Jan 24  `- Re: Choosing between Lisps and Schemes1Stefan Ram

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal