Well... This is strictly for working with js objects. The syntax is a wrapper
around the functions 'aget-in' and 'aset-in' which I wrote. I just assumed that
get-in doesn't work because you have to use aget for js objects... so they were
an attempt to mimic that with js-objects.
The .. Operator does make it much more concise but it's still ugly :)
The purnam.js syntax also supports dot notation function calls... which is more
than what getters and setters do. You can see examples of this on my GitHub:
Eg
def.n set-static-breadcrumbs [app v]
(js/console.log "Setting breadcrumbs")
(! app.layout.breadcrumbs
(let [arr (array)]
(doseq [i v.trail]
(arr.push app.static.|i|))
(arr.push v)
arr)))
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.