binaryage / cljs-oops

ClojureScript macros for convenient native Javascript object access.
Other
350 stars 13 forks source link

purpose of ocall! and oapply! #6

Closed jiangts closed 8 years ago

jiangts commented 8 years ago

I was reading the docs and didn't get any good examples of using ocall! and oapply!

How are they different from the normal ocall and oapply?

darwin commented 8 years ago

They are the same. It is just for you to express that you are calling a side-effecting function.

https://github.com/binaryage/cljs-oops/blob/d530a3cdf8cbab39bd2699c36caded4414224c50/src/lib/oops/core.clj#L48