Re:Super-expressive – Write regex in natural language
by wendyshu on Thursday January 21, 2021 @01:47PM
(#25862452)
It has the advantage of using normal syntax rather than string literals (AST manipulation, formatting, static analysis, autocomplete, ...).
[ Parent
| on HN ]
Re:Super-expressive – Write regex in natural language
by btilly on Thursday January 21, 2021 @04:09PM
(#25864273)
Regular expressions are their own language. The fact that we encode a DSL as a string is the problem for tools, and not the fact that strings are hard to handle.
If you offer a syntax extension other than strings to indicate the DSL coming next, and then have syntax highlighting for that DSL, then it would be fine.