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

Re: trim vs trimmed revisited

Thread Previous | Thread Next
From:
David Nicol
Date:
March 1, 2022 04:56
Subject:
Re: trim vs trimmed revisited
Message ID:
CAFwScO8oFXVTbCt8gSnpkFOqJxnKD=6w7VPdLFE8R=L8j+-OSw@mail.gmail.com
>
> Some have suggest it should do in place in void context
>

I am convinced that context dependent behavior adds unnecessary complexity
and resign from the some who suggest that.

I think it should warn, maybe even die, when trim gets a reference without
an overloaded ToString.

And I think it should implicitly map in array context.

>
>>

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