2 ms·
After looking at all the examples nothing stands out as particularly appealing. It ends up being just a more verbose version of regular expressions, but with le
by ricardobeat 4y ago
After looking at all the examples nothing stands out as particularly appealing. It ends up being just a more verbose version of regular expressions, but with less clear semantics, harder to see the underlying constructs. Over the years I've become quite familiar with regexp so maybe I'm just biased, but I'd rather have something like CoffeeScript's block expressions instead, where you can easily group and document each part:
https://coffeescript.org/#regexes https://coffeescript.org/#regexes
- point_blank 4y agoThat was my immediate reaction as well. This doesn't make regular expressions more approachable nor does it appear to bring anything new to the table. > so maybe I'm just biased I read 'transpiled' and immediately dismissed it. I think I have a bigger problem lol ;)
- ZeroGravitas 4y agoI think this does that: https://rulex-rs.github.io/docs/language-tour/basics/ https://rulex-rs.github.io/docs/language-tour/basics/ > In Rulex, whitespace is insignificant, except between quotes. This means that we can add spaces and line breaks to make the code look clearer. We can also add comments to explain what the expressions are doing. They start with a # and span until the end of the line: