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

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

Thread Previous | Thread Next
From:
Konovalov, Vadim
Date:
February 15, 2021 16:02
Subject:
RE: Looking for someone to adopt adding trim() to core
Message ID:
DM5PR1901MB2199119951EF8541FA9790928A889@DM5PR1901MB2199.namprd19.prod.outlook.com
FWIW I am with Yves, I support his statement "I will object strenuously, and so will others"

-----Original Message-----
From: Corwin Brust <corwin@bru.st> 
Sent: Monday, February 15, 2021 12:36 PM
To: Christian Walde
Cc: Paul LeoNerd Evans; Leon Timmermans; Scott Baker; Perl5 Porters
Subject: Re: Looking for someone to adopt adding trim() to core


The lurkers support Christian in email here, save where they are jerks and reply all.

On Sun, Feb 14, 2021 at 8:18 PM Christian Walde <walde.christian@gmail.com> wrote:
>
> On Thu, 11 Feb 2021 02:01:38 +0100, Leon Timmermans <fawaka@gmail.com> wrote:
>
> > On Wed, Feb 10, 2021 at 7:38 PM Paul "LeoNerd" Evans 
> > <leonerd@leonerd.org.uk> wrote:
> >>
> >> On Wed, 10 Feb 2021 19:22:50 +0100
> >> Leon Timmermans <fawaka@gmail.com> wrote:
> >>
> >> > It's more like the functions in List::Util, which we never cored.
> >> ...
> >> > In particular I would not
> >> > understand a policy that includes trim but doesn't include much 
> >> > of Scalar::Util.
> >>
> >> Almost certainly sure the answer is "because nobody got around to it".
> >>
> >> I'll have a look into it once I've finished `try/catch`.
> >>
> >> I suspect at minimum we'd want all of:
> >>
> >>   (Scalar::Util::)blessed
> >>                   refaddr
> >>                   reftype
> >>                   weaken
> >>                   unweaken
> >>                   isweak
> >
> > It has been tried before at least once, actually.
> >
> >> As to the list things, I'm also intending to have some 
> >> optree-shaped stuff that can do
> >>
> >>   List::Util::any
> >>               all
> >>               none
> >>               notall
> >>               first
> >>               reduce
> >>
> >> Maybe also
> >>
> >>   List::Util::head
> >>               tail
> >>
> >> and further down the list things start to get a bit less exciting.
> >>
> >> But overall - yes, it'd be nice to get more of those 
> >> {Scalar,List}::Util things into core as well. It just needs someone 
> >> to do it. Why it hasn't been done is much like why nobody's added 
> >> try/catch until now - nobody asked.
> >
> > I think you missed my point. I'm not arguing for or against the 
> > inclusion of anything here (I'll leave that for another discussion), 
> > I'm arguing for consistency instead of "it scratches someone's itch".
> > The latter is not sustainable or maintainable.
>
> Leonerd's answer is correct.
>
> If i had the chops for it i would make patches for all of these immediately.
>
> Consistency isn't an issue here as much as a lack of round tuits.
>
> --
> With regards,
> Christian Walde



--
Corwin
612-217-1742
612-695-4276 (signal)
corwin@bru.st

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