core.match will attempt to optimize matching :when clauses in the decision tree.
David On Tue, Dec 8, 2015 at 4:18 PM, retnuH <ret...@gmail.com> wrote: > I can't really figure out what the deal is with predicates. They're not > mentioned in the Basic/Advanced usage wiki pages at all. The code for > Guards and Predicates is basically identical. > > The only difference that I've been able to find (beyond the spelling, > obviously): > > - predicates can only be symbols, i.e. they can't be function declarations > (#() or (fn)) > > - predicates have to be pre-declared with defpred > > Am I missing something? Is there some use case that predicates fill that > guards don't? > > Cheers, > > H > > -- > 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 > --- > 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 clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 --- 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 clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.