3 ms·
The fact that nobody wants to learn or use regex is a pretty strong indicator that it's not a very good language. I think we've largely settled on it as matter
by sullyj3 5y ago
The fact that nobody wants to learn or use regex is a pretty strong indicator that it's not a very good language. I think we've largely settled on it as matter of historical contingency rather than because it has any particular merit.
For starters there's no capacity to name expressions in order to combine them at a higher level of abstraction.
I'd love to see something like Rosie take off as an alternative: https://rosie-lang.org/about/ https://rosie-lang.org/about/
- posterboy 5y agoeverybody is learning regex, it's part of any standard curriculum, it's in everyday use on unix platforms, rigid implementation without variables or recursion is a regular automaton has a firm place in the computational hierarchy and the benefit of predictable runtime, the markup is just syntactic sugar, and you can of course embed regex in any more powerful programming language that allows variables, like awk, perl, etc. Perl, hardly anyone wants to learn anymore, if that's what you mean.