<< Back to previous view

[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


Syntax quote returns clojure.lang.Cons instead of IPersistenList.
But simple quote always returns list.

(list? '(1))     => true
(list? '(1 2 3)) => true
(list? `(1))     => true
(list? `(1 2 3)) => false

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.

Generated at Mon Oct 16 17:01:07 CDT 2017 using JIRA 4.4#649-r158309.