Lisp Reader Macro Advent Calendar 2012ã®8æ¥ç®ã®è¨äºã§ãã ä»æ¥ã¯ãã¿ãªãããå¾ ã¡ããã®Arcãã¯ããã¦ãArcã§ãªã¼ãã¼ãã¯ãã¨ã¯? ã¯ãããããªã®ãªããå°ãªãã¨ããPaul Grahamãå ¬éãã¦ãããªãªã¸ãã«ã®Arcã«ã¯ããªã¼ãã¼ãã¯ãã¯ã¾ã ãªããããã§è©±ãçµãããã¦ãããã®ã ããã¨ãããããArcã®readé¢æ°ã®å®ç¾©ã§ãè¦ã¦ã¿ããã¨ã«ããã readé¢æ°ã¯ãarc.arcã§å®ç¾©ããã¦ããã®ã§ã該å½é¨åãæãåºãã (def readstring1 (s (o eof nil)) (w/instring i s (read i eof))) (def read ((o x (stdin)) (o eof nil)) (if (isa x 'string) (readstring1 x eof) (sread x eof))) ãã¼ã¨ãæåã«ãst
{{#tags}}- {{label}}
{{/tags}}