Re: How create dynamic var programmatically

2012-09-05 Thread Andrei Zhlobich
Try: (.setDynamic (intern *ns* 'a 0)) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscrib

Re: Why IPersistentList doesn't extend ISeq?

2012-09-03 Thread Andrei Zhlobich
I know it :) Actually clojure has 3 implementations of IPersistentCollection: 1) PersistentList - it is already ISeq 2) EmptyList - it is ISeq (!) https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/PersistentList.java#L129 3) PersistentQueue - semantically it it not a list Empty

Re: Why IPersistentList doesn't extend ISeq?

2012-09-03 Thread Andrei Zhlobich
At this time empty list is a valid seq. user => (list? ()) true Sources: https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/PersistentList.java#L129 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Why IPersistentList doesn't extend ISeq?

2012-09-02 Thread Andrei Zhlobich
Why IPersistentList doesn't extend ISeq? Clojure docs say: >> Lists are collections. They implement the ISeq interface directly (except for the empty list, which is not a valid seq) At this moment EmptyList implements ISeq, but PersistentList doesn't. It seems very strange for me. Also Persist

Why IPersistentList doesn't extend ISeq?

2012-09-02 Thread Andrei Zhlobich
>From docs: >> Lists are collections. They implement the ISeq interface directly (except for the empty list, which is not a valid seq). But at this time IPersistentList does not extend ISeq (but PersistentList does). It sees a bit strange. Also PersistentQueue implements IPersistentList. Seman