develooper Front page | perl.perl6.language | Postings from August 2006

Naming the method form of s///

Thread Next
From:
Mark J. Reed
Date:
August 31, 2006 06:45
Subject:
Naming the method form of s///
Message ID:
f60fe000608310645n7103d278i51c279d959bbed4e@mail.gmail.com
According to S05, the string method equivalent of the s/// operator is named
"subst".  (Just going by the spec here; the method doesn't exist yet in
Pugs).  I anticipate typos galore from the near-collision of names between
"subst" and "substr"; perhaps "replace" would be a better name, even though
it breaks the mnemonic association with s///?

-- 
Mark J. Reed <markjreed@mail.com>

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