News for hackers. Stuff that matters.
Re:Rulex – A new, portable, regular expression language by ricardobeat on Friday June 10, 2022 @11:36AM (#31695637)
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

Re:Rulex – A new, portable, regular expression language by ZeroGravitas on Friday June 10, 2022 @11:50AM (#31695817)
I think this does that:

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:

Re:Rulex – A new, portable, regular expression language by point_blank on Friday June 10, 2022 @11:42AM (#31695709)
That 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 ;)