From: Jeff Wood Date: 2005-11-27T22:13:21+09:00 Subject: Re: String#to_rx ? ------=_Part_18797_23675044.1133097195053 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 11/27/05, Nikolai Weibull wrote: > > Jeff Wood wrote: > > > Yes I did read the original thread. > > So in what way is String#escaped better than String#to_rx? When I read #to_rx I can only guess at the specifics of the call ( somethin= g to do with regular expressions ... or perscriptions ) ... but what it's doing to the string, no idea... when I read #escaped all the lights light up ... ah, you want an escaped version of the string. There's a bit too much implicit in #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". Nope, I haven't. And I surely don't plan to. And, I don't need a history lesson from you, thanks anyways. I've been using ruby for a few years now and am quite well aware of it's origins and some of the decisions that were made early on ( as well as the features that were implemented to help Perl users move away from Perl to Ruby ). If you want Larry Walls "less perlish" perl ... by all means, perl6 should be ready in about 5 years. > 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. Actually, it has NOTHING to do with individualism, even if I don't like the choices, Matz is still the one that makes 'em. I have my opinions about things, sometimes they match, sometimes they don't. ... If you'd like to continue this discussion, I suggest we move it off the list, it's caused enough noise for everybody else. j. -- "Remember. Understand. Believe. Yield! -> http://ruby-lang.org" Jeff Wood ------=_Part_18797_23675044.1133097195053--