Readable Regular Expressions for JavaScript/TypeScript, Inspired by Emacs' rx

10 points by confusedalex


mx-b

i really like this kind of type-checked and very clear regex engineering in theory, but in practice i find little use for them for a couple of reasons:

i still like things like this, but because of those associated costs i never end up using them in any real projects

0x2ba22e11

It's way nicer but also if you've made an API that looks like this, I think you may as well go a little further and make it create parser combinators like Parsec's style or LL(1-or-more) parsers because they tend to be very readable too for exactly the same reason..