develooper Front page | perl.perl5.porters | Postings from November 2020

RE: Looking for someone to adopt adding trim() to core

Thread Previous | Thread Next
Konovalov, Vadim
November 26, 2020 04:10
RE: Looking for someone to adopt adding trim() to core
Message ID:
You’ve made incorrect assumption.
You’re seeking for “$a =~ s/^\s+//; $a =~ s/\s+$//;” in CPAN modules and conclude that all this users want trim function.

I use such regexps often but I do not want trim to be in global space.

IMO introducing some tiny things like ‘say’ or ‘trim’ is not moving forward.
Moving forward is introducing Set()  object into the core language (like Julia do).


From: Christian Walde <>
Sent: Wednesday, November 25, 2020 1:35 PM
To: Yuki Kimoto; Konovalov, Vadim
Cc: Karen Etheridge; Paul LeoNerd Evans; demerphq; Dan Book; Scott Baker; Perl5 Porters
Subject: Re: Looking for someone to adopt adding trim() to core

On Wed, 25 Nov 2020 11:18:36 +0100, Konovalov, Vadim <<>> wrote:
I am against trim going directly to main package, but no problem for me into separate package

Also I do not see why you’re insisting that trim is going to be used often.
No, it isn’t!

I already explained elsewhere in this thread why Yves' concerns do not apply to trim specifically and why the suggestion of redress is problematic as well as what questions are open about it. As such your opinion is noted, but does not add anything new whatsoever.

Further, just going "No, it isn’t!" without providing any arguments adds nothing to the conversation either.

I provided multi-disciplinary evidence that people desire the functionality in this and other languages to a degree comparable to `say`. If you don't understand it, feel free to ask questions, but invalidating it via "no u"?

That ain't it, chief.

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