Jeff W. wrote:
Yes I did read the original thread.
So in what way is String#escaped better than String#to_rx?
And although from time to time I have been “thumbs-up” for adding
punctuation soup into Ruby, I’m learning and growing into the fact
that it’s not the ruby way.I was simply trying to suggest something that felt more ruby to me.
adding syntax ( or anything directly from Perl ) just continues
to feed where most of the complaints I’ve ever heard about ruby … It
doesn’t need to feel any more perlish than it already does in some
places.
You obviously haven’t read “Apocalypse 5” or “Synopsis 5”. The whole
point of that syntax is to be able to clean up the regex syntax, i.e.,
to thin down the “punctuation soup”. Did you know that many features of
Ruby have been heavily influenced by, and even lifted directly from,
Perl? The syntax for regular expressions, for example (with some minor
incompatibilities). So I don’t really see where your “we shouldn’t use
perlish stuff” argument is coming from; especially seeing as how the
suggestions in the mentioned articles intend to make Perl’s regular
expressions less “perlish”.
The only opinion that matters to me is Matz. If he likes it, I’m sure
I’ll get used to it, otherwise, bleck, I’ll pass.
How very individualistic of you.
nikolai