Lisp
説æç¨ã®ã·ã³ãã«ãªä¾ãæãã¤ããã®ã§ã¡ã¢ãä¾ãã°my-orã次ã®ããã«å®ç¾©ããã¨ããã (define-macro (my-or test1 test2) `(let ((x ,test1)) (if x x ,test2)))ãããããã§ã¯ã以ä¸ã®å ´åã«æ£ããçµæãè¿ããªãã gosh> x #t gosh> (or #f x) #t gosh> â¦
Haskellã®åæ¨è«ãéªéã ã£ã俺ã«ã¯ããããããã 2. Lisp ãããªã㦠Qi ã§æ¸ãäºã®å©ç¹ã¯ä½ï¼ * Qi II 㯠CAR / CDR ãå¼·å¶ããªãããããã«ããã¿ã¼ã³ãããã使ãäºãã§ãããå ¸åç㪠Qi ããã°ã©ã 㯠Lisp ããã°ã©ã ã¨æ¯è¼ãã¦é空ç½æåã40%ç¨åº¦ã«â¦
CommonLispã¯make-dispatch-macro-characterã¨ãset-dispatch-macro-characterã使ã£ã¦å®ç¾©ããããã ã Gaucheã«ã¯ããããæ©è½ã¯ãªãã®ããªï¼ æè¿ããã£ã¦ãã Ruby ã®ãããã¯ãåèã«ï¼Common Lisp ã®ãªã¼ãã¼ãã¯ãã使ã£ã¦ (mapcar (lambda (x) (* x â¦
* Lisp-1 * ä»£å ¥ãªãã¬ã¼ã¿ã¯= o å¤æ°ãç¡ãã£ããä½ã o carãcdrã®æ»ãå¤ã«ãé©ç¨ã§ãã o ä¸è¨ã®ã³ã¬ã¯ã·ã§ã³ã®ã¤ã³ããã¯ã¹ã¢ã¯ã»ã¹ã®æ»ãå¤ã«ãé©ç¨ã§ãã * é¢æ°å®ç¾©ã¯def * å¿åé¢æ°ã¯fn * æååãããã·ã¥ãã¼ãã«ã®ãããªæ§é ã®ãããªãã¸ã§ã¯ãã¯â¦
ä»ã¾ã§Schemeç³»ã¨CommonLispç³»ã£ã¦åæã«å¼ãã§ããã©ãããããç¨èªããã£ãã®ãã æè¿ããCommonLispã¯Lisp-2ã§ãSchemeã¯Lisp-1ã§ãããã¨ããæç« ãèªãã åå空éãã²ã¨ã¤(é¢æ°ã¨å¤æ°ã«åºå¥ããªã)ã®ãLisp-1ã§ã åºå¥ãããã®ãLisp-2ã§ããã¨ãããâ¦