IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
Lispã®ä¸ç¨®ã§ããSchemeãããã¤ãããå¦çç³»ã®ä¸ã§ãæ°è»½ã«ã¹ã¯ãªãããæ¸ããGaucheã§Lispã®ä¸çãä½é¨ãã¦ã¿ããï¼ç·¨éé¨ï¼ ãGaucheã§ã¡ã¿ããã°ã©ãã³ã°ãã¨é¡ãã¦ãããããGaucheã使ã£ãããã°ã©ãã³ã°ã®é£è¼ãæ¸ããã¦ããã ãã¾ãåç°è£ç¾ã§ãããããããé¡ããããã¾ãã Gaucheã¨ã¯ ä»åã®é£è¼ã§åãä¸ããGaucheã¯ãã¯ã¤å¨ä½ã®æ¥æ¬äººããã«ã¼ãå·åå²æãããä½ã£ããLispã®ä¸ç¨®ã§ããSchemeã®ãªã¼ãã³ã½ã¼ã¹å¦çç³»ã§ãã Gaucheã®ç¹å¾´ã¯ãPerlãRubyã®ããã«æ°è»½ã«ä½¿ãã軽ãå¦çç³»ã ã¨ãããã¨ã§ããPerlåæ§ã«æ£è¦è¡¨ç¾ãæååæä½ãè¡ããã¡ãã£ã¨ãããã¼ã«ã®ä½æã«ã使ãã¾ããããããé常ã«å¼·åãªCommon Lisp風ãªãã¸ã§ã¯ãã·ã¹ãã ãæã¡ãLispãªãã§ã¯ã®ãã¯ãã«å ããWebãã°ã©ãã£ãã¯ã¹ãªã©ã®è±å¯ãªã©ã¤ãã©ãªãæã£ã¦ããã®ã§å®ç¨
åæä½åããªãåæä½å¤æ°ã¯ Reading Gauche/gauche/vm.h/SCM_ERROR_BEING_HANDLED ã®ãããªæ¸ãæ¹ã§ããã§ããããã -- ã³ã³ãµã 2007-09-27 (æ¨) 23:26:32 ã¯ããè¯ãã¨æãã¾ãã#define ã¨åããããªæ±ãã§ããã -- ã²ãã½ã 2007-09-28 (é) 00:43:20 é±æ«ã«å宿ã«åºã¦ããéã®åã®catch-upä¸ã§ããstruct HogeHogeRef 㯠HogeHoge ã®ãã¼ã¸ã«è¨è¼ãã¨ãã風ã«ãªã£ã¦ãããããªã®ã§å¾ãã¾ãããã®æ¹ãæç¹°ããããã§ãããæ¢ã«ãã¹ããããstructé¢é£ãã¼ã¸ã®ãªã³ã¯ãå 容ãé©å®ä¿®æ£ãã¾ãã -- naoya_t 2007-09-25 (ç«) 14:46:08 ReadingGaucheã®é層æ§é ã§srcãçç¥ãã¦ãã¾ã£ã¦ããããã«ãsrcã¨åãé層ã«ãªãgcãªã©ã®
// èªåç¨ã¡ã¢ functionæã¨é¢æ°ãªãã©ã« ä¾ãã°ãx 㨠y ãå ç®ããçµæãè¿ãé¢æ° add ãå®ç¾©ããã¨ãããã function add(x,y) { return x + y } ããããfunctionæãã¨ãããSchemeã§ããã° (define (add x y) (+ x y)) ã«ç¸å½ã Schemeã«ããã¦ããã (define add (lambda (x y) (+ x y))) ã¨åçã§ããããã«ãJavaScriptã§ã var add = function(x,y) { return x + y } ã¨ããæ¸ãæ¹ãã§ãããSchemeã®lambdaå¼ã«ããããã®è¨æ³ããé¢æ°ãªãã©ã«ãã¨ãããvarã¯defineã«ç¸å½ã ããã§åé¡ã«ãªãã®ã¯ãfunctionæãé¢æ°ãªãã©ã«ã function [é¢æ°å] ([å¼æ°1[,å¼æ°2[,...]]]) {
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}