<< Back to previous view

[CONTRIB-74] clojure.contrib.condition: list? not the correct predicate for detecting forms Created: 12/Apr/10  Updated: 26/Jul/13

Status: In Progress
Project: Clojure-Contrib
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect
Reporter: Anonymous Assignee: Stephen C. Gilardi
Resolution: Unresolved Votes: 0
Labels: None


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?".

Comment by Assembla Importer [ 24/Aug/10 9:24 AM ]

Converted from http://www.assembla.com/spaces/clojure/tickets/74
0001-Use-seq-instead-of-list-to-determine-codeiness-.-Ref.patch - https://www.assembla.com/spaces/clojure/documents/cqHmfyuIur35MTeJe5cbLr/download/cqHmfyuIur35MTeJe5cbLr

Comment by Assembla Importer [ 24/Aug/10 9:24 AM ]

technomancy said: [file:cqHmfyuIur35MTeJe5cbLr]: Implements the fix

Generated at Mon Jan 22 18:44:16 CST 2018 using JIRA 4.4#649-r158309.