clojure.contrib.condition: list? not the correct predicate for detecting forms
The handler-case macro detects forms of the form "(handle ...)" by checking for items in the body for which list? returns true that begin with the symbol handle. code can be built from seqs that are not lists (e.g., clojure.lang.Cons's or lazy-seqs). The proper predicate is "seq?" not "list?".
Leave a comment
on 2010-04-13 01:30 *
By Steve Gilardi
Summary changed from clojure.contrib.condition: list? not the correct predicate detecting forms to clojure.contrib.condition: list? not the correct predicate for detecting forms
on 2010-04-27 17:51 *
By technomancy
Attachment 0001-Use-seq-instead-of-list-to-determine-codeiness-.-Ref.patch added
file:cqHmfyuIur35MTeJe5cbLr: Implements the fix