develooper Front page | perl.perl5.porters | Postings from March 2021

Re: Let's talk about trim() so more

Thread Previous | Thread Next
Ricardo Signes
March 27, 2021 00:08
Re: Let's talk about trim() so more
Message ID:
On Fri, Mar 26, 2021, at 6:40 PM, Darren Duncan wrote:
> I know I wasn't following this issue in detail but I was always assuming that a 
> trim() would NOT modify its argument and would return the trimmed value.  This 
> is what everyone would reasonably expect.  This is the only version that is 
> actually useful..

This is a weird position to take in the face of people (including me and several Perl programmers not on this list whom I asked) expecting modify-in-place and thinking it would be useful.

I'm not even trying to tell you to agree.  I'm just saying "no one would expect that or find it useful" is … well, a weird claim.  (Do you think I would be suggesting we adopt some behavior that I found surprising and useless?)

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