4 ms·
Why write a glob engine at all when you already have a fast regex you didn't read the article. there are glob implementations that do just that.
by f2f 9y ago
Why write a glob engine at all when you already have a fast regex
you didn't read the article. there are glob implementations that do just that.
- oconnore 9y agoThe bulk of the article is about how the Go implementation avoids this behavior without just converting to regex.
- taeric 9y agoI took it more as the bulk of the article explaining the differences and problems in algorithms. Just knowing that you can use a non-backtracking regex engine is fine, of course. Knowing how folks got it wrong is pedagogical in its own right. As an easy additional point to the lesson, it might not be clear to everyone why you have to take care on which regex engine you move to.
- hkeide 9y agoNo, the Go standard library implementation is mentioned in a single paragraph. The Go code in the article is written simply as an illustration.
- jwilk 9y agoFrom the HN guidelines: Please don't insinuate that someone hasn't read an article. "Did you even read the article? It mentions that" can be shortened to "The article mentions that."