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

Naming the method form of s///

Thread Next
Mark J. Reed
August 31, 2006 06:45
Naming the method form of s///
Message ID:
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 <>

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About