Thx, then why is it used at (deftype Vector [... ] ... ...
IIndexed (-nth [coll n] (if (and (<= 0 n) (< n (.-length array))) (aget array n) #_(throw (js/Error. (str "No item " n " in vector of length " (.-length array)))))) where I would in fact expect an exception (to get the same behavior as in clojure)? Las Baishampayan Ghose 2012. március 26., hétfő napon a következőt írta: > The #_ reader macro simply comments out the form, so it's a no op. > > Sent from phone, please excuse brevity. > On Mar 26, 2012 10:23 AM, "László Török" > <ltoro...@gmail.com<javascript:_e({}, 'cvml', 'ltoro...@gmail.com');>> > wrote: > >> Hi, >> >> I'm trying to wrap my head around the role of the #_ macro and how it's >> used in core.cljs. >> >> Can some explain, why it is used to prefix (throw.. ) in >> (deftype EmptyList [meta] >> ... >> ... >> >> >> IStack >> >> >> >> (-peek >> >> -- >> 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<javascript:_e({}, 'cvml', >> '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 <javascript:_e({}, 'cvml', >> 'clojure%2bunsubscr...@googlegroups.com');> >> 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 post to this group, send email to > clojure@googlegroups.com<javascript:_e({}, 'cvml', > '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 <javascript:_e({}, 'cvml', > 'clojure%2bunsubscr...@googlegroups.com');> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- László Török -- 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