Furthermore, I believe satisfies? would be the correct approach in Clojure
too. It is in no way ClojureScript specific:

https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/satisfies
?

That protocols are implemented on top of Java interfaces is somewhat an
implementation details. Using instanceof for protocols is, in my view, akin
to directly using the class constructors for records instead of the
->Record form. It works and is highly unlikely to change in future
versions, but is still technically an implementation detail that you should
not rely on.

On Tuesday, 25 November 2014, <adrian.med...@mail.yu.edu> wrote:

> Interfaces are part of Java and can be defined and implemented on data
> types you define in JVM Clojure as an interop facility. But they are not
> part of the Clojure programming language in the same way protocols are.
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojurescript+unsubscr...@googlegroups.com <javascript:;>.
> To post to this group, send email to clojurescript@googlegroups.com
> <javascript:;>.
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to