On Friday, June 3, 2016 at 10:30:35 AM UTC-4, Jon Zeppieri wrote: > There's rarely a good reason. If you were dispatching over a very large set > of constants -- fixnums or characters, in particular -- I'd expect better > performance from case. That's about it. > > > On Jun 3, 2016, at 10:10 AM, Gerald Pipes <gerald_pi...@student.uml.edu> > > wrote: > > > > I have been recently using match a lot and I was wondering what was the > > main benefit of using case instead of match? It seems as though match has > > the distribution on a single val-exp except match allows for the pattern > > matching and case just uses equal?. > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Racket Users" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to racket-users+unsubscr...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout.
Yes, I saw in the docs that case specifically mentions it can distribute in log(n) time but for match there is no time mentioned. I assumed case's performance was better because of the performance omission of match. Does anyone know the actual performance of match? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.