Skip to content

what does it take to add a new regex engine to upstream ripgrep? #2300

Answered by BurntSushi
SonOfLilit asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think it's out of scope, but yeah I think the answer here is "just no." Scope is maybe part of that, but there's actually a whole host of reasons:

  • Kleenexp is one of many many many "regex for humans" flavors. There are even several of them written in Rust. Either one is a clear and obvious winner (which I don't believe is the case) or ripgrep allows all of them (which is impractical). Since I am personally not invested in the "regex for humans" idea---especially in a grep tool---I don't see myself taking any action here.
  • The maintenance burden of a third regex engine inside of ripgrep.
  • Backwards compatibility. How do I know you aren't going to break the syntax in a future revisio…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@SonOfLilit
Comment options

@BurntSushi
Comment options

Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2299 on September 04, 2022 16:57.