Manjo,
I think there is considerable benefit in keeping certain APIs similar
between ClojureScript and Clojure.  In places where the intent is the
same I would suggest going with a familiar API.  I took this approach
with enfocus by basing it on enlive.  It sped up my development
because I didn't have to ponder if the semantics were usable. In the
places where my feature set didn't line up, I found myself working and
reworking the apis because they weren't clean enough or they seemed
confusing.  All of that being said, ClojuresSript is very young and I
don't think we have a right way to do things yet. Right now I would be
willing to try any testing library regardless if it matched
Clojure.

Creighton Kirkendall

On Jan 15, 12:37 am, mmwaikar <mmwai...@gmail.com> wrote:
> Hi,
>
> My question is about design of libraries for ClojureScript.
>
> So for ex, there is clojure.test which has some public API. Now assume one
> has used it and is comfortable with its API.
> Now he has to write some ClojureScript code and wants to write some unit
> tests as well.
>
> Obviously, he'll use some pre-existing JS library / framework, but it will
> have its own API.
> Now -
>
> 1) Does it make sense to write a ClojureScript wrapper over existing JS
> libraries (as there are wrappers over many Java libraries / frameworks)?
> 2) Does it make sense, or is it better if this ClojureScript wrapper,
> exposes the same (as far as possible) or similar API to that of one of the
> Clojure libraries? The obvious advantage being the programmer has to get
> accustomed to just one API, which works for Clojure as well as
> ClojureScript.
>
> Please let me know your views.
>
> Thanks,
> Manoj.

-- 
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