4 ms·
It is beyond me how people continually compare things that are (supposedly) hard to read because of HIGH semantic density (regex/perl/APL/...) with things that
by rak1507 4y ago
It is beyond me how people continually compare things that are (supposedly) hard to read because of HIGH semantic density (regex/perl/APL/...) with things that are hard to read because of LOW density (brainfuck). It is a pretty terrible comparison but sadly people seem to do it a lot. Is is not obvious just from a quick glance that they're completely different?!
Anyway, the regex in question is extremely easy to read (the clue is in the name regular) (that's a word, followed by any number of groups that are one of these characters followed by a word... etc - you get the point). I think that regex is probably one of the easier ways of expressing the idea.
Regexes aren't 'skimmable', but they are (in a lot of cases, like this one) readable (because they are, yknow, pretty regular), so reading it slowly should be possible for anyone who knows what the basic rules are, which there aren't many of.
- deleted 4y ago[deleted]
- User23 4y agoPerl qr//x equivalents aren’t available in most languages sadly.