Well, I am an emotional programmer. And it just hurts when something 
potentially great like Clojure fucks up big time in the little details.

I found the problem. It was caused by serializing a record value and later 
deserializing it:

---------------------------------------------------------------------------------------------------------------------------------------------------
(defrecord M-Node [leaf content])

(def n (M-Node. false ""))

(if (:leaf n) "boom" "ok")  ;; returns "ok"

(def n (load-node (store-node n)))  ;; load-node and store-node are just 
java serialization/deserialization

(if (:leaf n) "boom" "ok")  ;; returns "boom"
----------------------------------------------------------------------------------------------------------------------------------------------------


On Saturday, April 7, 2012 4:17:40 PM UTC+1, Aaron Cohen wrote:
>
> I'm afraid you've managed to convey your emotion, but not what the actual 
> problem you're having is.
>
> Care to try that again?
>
> --Aaron
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to