Entries from 2008-05-24 to 1 day
leque さんによるありがたいバグ指摘があったのでどんどん直すよ。 when/unless without body does not raise exception.compiler.scm で match を使って以下のようにしました。 [(when) (match sexp [('when pred body . more) (pass1/expand `(cond (,pred…
Andrew Wrightのパターンマッチライブラリが使えるようになりました。 mosh> (match '(a b) [(x y) (print x) (print y)] [else (print "not match")]) a b プリコンパイルして同梱してあるのですぐに試せます。
Scheme のリスト例えば '(1 2 3 4 5 6 7 8 9 .. 100000まで続く) を C++ のコードに変換すると cons(makeInt(1), cons(makeInt(2), cons(makeInt(3), ....))) と cons 関数の入れ子になるんですが、これがどうも g++ 的につらいらしい。 とにかくコンパイル…
遠出なのに家に眼鏡忘れた。