clojurescript extend-type question

232 views
Skip to first unread message

Jack Moffitt

unread,
Dec 11, 2011, 6:21:06 PM12/11/11
to clo...@googlegroups.com
Is there a technical reason that there is no (extend-type object ...)
in ClojureScript?

I just found myself implementing several protocols on the native
object to get better host interop, but it occurred to me that if it
was this easy, surely it would have already been done.

If there is no technical reason it can't be done, would a patch to add
the relevant protocols be accepted?

jack.

David Nolen

unread,
Dec 11, 2011, 10:37:20 PM12/11/11
to clo...@googlegroups.com
This already works:

(extend-type js/Object ...)


jack.

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply all
Reply to author
Forward
0 new messages