Re: Clojurescript: unreachable values in associative arrays.

2011-09-04 Thread rdunklau
Thank you, it seems obvious now that you say it. On Sep 4, 11:02 pm, Chris Granger wrote: > Try (aget (.attributes myelement) "data-url") > > Cheers, > Chris. > > On Sep 4, 8:52 am, rdunklau wrote: > > > > > > > > > Hello. > > &g

Clojurescript: unreachable values in associative arrays.

2011-09-04 Thread rdunklau
Hello. I'm trying to use clojuresript in the browser, and I'm having trouble accessing object attributes with dashes in it. For example, I'd like to access the data-url attribute of a DOM element, but the compiler compiles (.data-url (.attributes myelement)) to myelement.attributes.data_url. Is t

Re: Why I have chosen not to employ clojure

2010-03-23 Thread rdunklau
I think that he made a good point, despite his rantings. As an experienced java developer, these are the steps I took while setting my environment up and running. - downloaded the jar, launched java -jar clojure.jar. I was able to fiddle with the repl, but when it came to code something dependent

clojure.contrib.sql : how not to use a transaction ?

2010-03-05 Thread rdunklau
Hello. I'm trying to use clojure.contrib.sql to set up my database (on postgresql) However, i'm running into some problems : I did not find a way to execute a (prepared) statement outside a transaction WITHOUT returning the results. What I tried so far: (def mystatement "CREATE DATABASE mydb WIT