On Saturday, 25 August 2012 22:06:28 UTC+5:30, David Nolen wrote: > > On Sat, Aug 25, 2012 at 3:49 AM, Shantanu Kumar > <kumar.s...@gmail.com <javascript:>> wrote: > > Hi, > > > > I noticed that `with-meta` is not working on function objects in CLJS. > > Compilation fails with the following error: > > > > Error: No protocol method IWithMeta.-with-meta defined for type > function: > > function (maps, x) { > > return x; > > } > > It's not currently supported. Ticket welcome. If you have ideas about > a good approach that's even better. Part of the problem is that > Clojure fns are just JS fns. >
Filed the issue here: http://dev.clojure.org/jira/browse/CLJS-359 Storing metadata probably would need to store the fn as an internal Clojure representation, which might lead to indirection with performance implications on fn invocation? Shantanu -- 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