Re: LinkedHashMap not well supported

2012-04-29 Thread kurtharriger
Ill agree that it may be approriate for map? to return false as it does perhaps imply a stricter contract then the jvm versions namely immutability. However, I fully expected the return type of keywordize to be a new immutable clojure map and it would be extreamly helpful if walk, hash-map, fir

Re: LinkedHashMap not well supported

2012-04-29 Thread Softaddicts
Obviously, LinkedHashMap is not a Clojure persistent data structure. map? and alikes tests interfaces specific to Clojure, not Java ones. Clojure data structures implement java.util.Map and cie to ease interop with Java but they are not the same as the persistent interfaces and do not allow mutat

LinkedHashMap not well supported

2012-04-29 Thread Kurt Harriger
I am using a groovy library that returns a LinkedHashMap containing ArrayLists and nested LinkedHashMaps. I did not expect any issues working with this in clojure since this type implements java.util.Map I figured everything would just work. However the first thing I tried to do was apply cloj

Re: ClojureScript: can't (:use) protocol in another namespace

2012-04-29 Thread Stuart Campbell
It does. Ticket opened: http://dev.clojure.org/jira/browse/CLJS-216 Cheers, Stuart On 28 April 2012 01:30, David Nolen wrote: > Does this work in Clojure? If so file a ticket in JIRA. > > David > > On Fri, Apr 27, 2012 at 5:09 AM, Stuart Campbell wrote: > >> Hello, >> >> I'm not sure if what I

Re: Light Table - a new IDE concept

2012-04-29 Thread Raju Bitter
ArsTechnica mentions Light Table now http://arstechnica.com/business/news/2012/04/html5-bullets-innovative-clojurescript-ide-css-filter-effects-and-more.ars -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Re: Any IObj implementation for deftype that doesn't take meta via ctor?

2012-04-29 Thread David Nolen
You need to pass in meta. David On Saturday, April 28, 2012, Shantanu Kumar wrote: > Hi, > > Can somebody point me to an example that implements the IObj interface > on deftype without needing to pass in meta via constructor? defrecord > seems to be doing this by storing meta on the tag, but I d

Re: Macros and deftype – usage question

2012-04-29 Thread Baishampayan Ghose
The problem is in embedding an actual function object instead of a form which creates the function object. That results in a form which can't be read properly and thus the cryptic error. Regards, BG On Sat, Apr 28, 2012 at 9:13 PM, Shantanu Kumar wrote: > Hi, > > I am running into error when usi