[CONTRIB-74] clojure.contrib.condition: list? not the correct predicate for detecting forms Created: 12/Apr/10 Updated: 24/Aug/10 |
|
| 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 | ||
| Approval: | Test |
| Description |
|
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?". |
| Comments |
| Comment by Assembla Importer [ 24/Aug/10 9:24 AM ] |
|
Converted from http://www.assembla.com/spaces/clojure/tickets/74 |
| Comment by Assembla Importer [ 24/Aug/10 9:24 AM ] |
|
technomancy said: [file:cqHmfyuIur35MTeJe5cbLr]: Implements the fix |