Yes, definitely, good point. Both are them are good depending on the case actually.
Le mardi 18 février 2020 16:55:02 UTC+4, Jan Mercl a écrit : > > On Tue, Feb 18, 2020 at 1:47 PM Vincent Blanchon > <blancho...@gmail.com <javascript:>> wrote: > > > However, in real code, I guess we will have that many constants, so it > does not make really sense to increase the number. > > Design decisions may be driven by the desire to maximize the > performance in the average case or in the worst case scenario. > > That's why Go has a regexp package that's slower in the average case > wrt PCRE, but it guarantees linear, not exponential, performance of > the worst case. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/69db18c0-31a4-4d52-94c6-a168ef815e0a%40googlegroups.com.