3 ms·
The point being, though, that perl regexes are compiled at parse time, with no extra syntax hanging around. And no, I simply have to disagree that a separate o
by ajross 15y ago
The point being, though, that perl regexes are compiled at parse time, with no extra syntax hanging around.
And no, I simply have to disagree that a separate object instantiation is "more readable" than the straightforward syntax describing the object itself. That this argument should appear in a discussion of a dynamically bound scripting language shows as well as anything why the python community is eating itself. A LISP or Ruby nut would never have made that claim.
The point to having code there is to read it. Hiding it doesn't make it more readable, it just fools you into thinking you understand it better than you do. You probably call your regexes stuff like "split_at_word_boundaries", right? And how many bugs have you had to deal with because the whitespace conventions aren't clear from your source?