Because Clojure ignores Lisp. Put that gun down, and let me explain. Lisp is a process. Progress is measured in decades. Lisp gets lexical scope right, for example, simply because we have a head start of decades over the competition others. I'm quite certain that the unwashed masses will discover macros around 2020 and hygiene around 2040. It's simply a matter of time. Lisp moves slooooooooooooooo
ISLISP には動的変数 (ダイナミックスコープの変数) の仕組みがある。 名前空間が分離されており、参照には特殊演算子 dynamic を用いる。 この方式であれば Scheme で再現するのは簡単そうだと思えたのでやってみた。 (library (dynamic-variables) (export dynamic-let defdynamic dynamic set-dynamic) (import (rnrs) (rnrs control (6)) (rnrs exceptions (6)) (rnrs conditions (6)) (rnrs mutable-pairs (6))) (define dynamic-chain '()) (define global-dynamic-variables '()) (define (add-dynamic-variables va
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
funarg 問題とは、クロージャが成り立つときの結果を期待したいけど、見た感じ2通りに曖昧な以下のような2パターンの総称のことみたいです。 ;; upwards funarg problem (let ((y 2)) (funcall (funcall #'(lambda(y) #'(lambda(x) y)) 1) 0)) ;=> 1 ;; downwards funarg problem (defun foo (x) #'(lambda () x)) (defun bar (x) (funcall (foo 1))) (bar 2) ;=> 1 上の定義が正しいなら、以下は funarg 問題的には残念な結果ということになる。それがどうしたと思ってしまうのですが。コメント歓迎です! (defvar y 10) (let ((y 2)) (funcall (funcall #'(lam
A problem common to many powerful programming languages arises when one has to determine what values to assign to free variables in functions. Different implementational approaches which attempt to solve the problem are considered. The discussion concentrates on LISP implementations and points out why most current LISP systems are not as general as the original LISP 1.5 system. Readers not familia
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く