develooper Front page | perl.perl6.language.regex | Postings from August 2000

Re: RFC 164 (v1) Replace =~, !~, m//, and s/// with match() and subst()

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
August 28, 2000 08:42
Subject:
Re: RFC 164 (v1) Replace =~, !~, m//, and s/// with match() and subst()
Message ID:
751.967477332@chthon
>> >    next if /\s+/ || /\w+/;          next if match /\s+/ or match /\w+/;
>> 
>> Gosh this is annoying.  I *really* don't want to have to type "match"
>> all the time.  And now I have to use C<or> rather than C<||>, which is
>> already ingrained in my head  (I rarely use "or" or "and")

There are thirteen years of precedent, not to mention the millions of users,
who are completely accustomed to writing expressions like

    next if /\s+/ || /\w+/;          

It's nearly part of Perl's language signature.  I wouldn't count
on this going away if you still think to call this "Perl".  It is
of course much more likely in the renamed "Frob" language, however.

--tom

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About