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

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

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
March 27, 2021 00:08
Subject:
Re: Let's talk about trim() so more
Message ID:
bb3abdb0-b5f9-4afe-8d4c-f95e183cc4c0@dogfood.fastmail.com
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?)

-- 
rjbs
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