bug or feature of archimedes.element?

12 views
Skip to first unread message

Paul Viola

unread,
Oct 4, 2013, 9:17:43 PM10/4/13
to clojure-...@googlegroups.com
Regarding get:

(defn get
  ([^Element elem key]
     (get elem key nil))
  ([^Element elem key not-found]
     (let [value (.getProperty elem (name key))]
       (or value not-found))))

If the value of the property is true or false (one of my boolean properties is an example) (get vertex :prop) will return true/nil.  While this is not the end of the world,  it is not what I expected.

Any good reason for this behavior??

Am I violating some important proscription against storing true/false in properties??

Thanks,
Paul


Zack Maril

unread,
Oct 4, 2013, 10:28:35 PM10/4/13
to clojure-...@googlegroups.com
No good reason. This is a bug. 
https://github.com/clojurewerkz/archimedes/issues/17
-Zack
Reply all
Reply to author
Forward
0 new messages