3 ms·
You could say that about any syntax. But actually coming up with a better syntax is much harder than just saying it can be done.
by Retra 11y ago
You could say that about any syntax. But actually coming up with a better syntax is much harder than just saying it can be done.
- jqm 11y agoYou could say that about any syntax. But in most cases it would still apply much more to things like Perl regular expressions.
- vezzy-fnord 11y agoThere's VerbalExpressions, which simply wrap common PCRE tokens into methods/functions: https://github.com/VerbalExpressions https://github.com/VerbalExpressions
- Retra 11y agoThose are pretty good, if a little verbose.
- toufique 11y agoThis is awesome, like life-changing awesome! I always felt an impedance mismatch between how my mind describes string patterns and how regexps are written. VerbalExpressions is the closest thing I've seen to how I naturally think.
- techdragon 11y agoThis is going to rapidly replace every instance of regex in my code. The readability improvement is immeasurable. It's also conveniently similar enough to Python's verbose regex syntax.