[CLJ-1054] Syntax quoted form produces a sequence, not a list Created: 31/Aug/12 Updated: 18/Sep/12 Resolved: 18/Sep/12 |
|
| Status: | Closed |
| Project: | Clojure |
| Component/s: | None |
| Affects Version/s: | Release 1.4 |
| Fix Version/s: | None |
| Type: | Defect | Priority: | Minor |
| Reporter: | Andrei Zhlobich | Assignee: | Unassigned |
| Resolution: | Declined | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Syntax quote returns clojure.lang.Cons instead of IPersistenList. (list? '(1)) => true (list? '(1 2 3)) => true (list? `(1)) => true (list? `(1 2 3)) => false |
| Comments |
| Comment by Stuart Halloway [ 18/Sep/12 6:42 AM ] |
|
It is unusual in Clojure to expect/rely on concrete list? checks, particularly given the prevalence of seq? If the behavior documented here is causing problems, please discuss use case on mailing list, and then we can open a ticket. |