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

Re: Revisiting trim

Thread Previous | Thread Next
From:
mah.kitteh via perl5-porters
Date:
May 27, 2021 17:17
Subject:
Re: Revisiting trim
Message ID:
TZ4R83T7W-vQyP98fpn9p_y5mNeXCbsBBPCGp-LLqisd0KDIBwoqaots_70dL4IaMKyZev7C5MgkImGcjaXUEmunwm1Lv_dA3NIKjgfrAsM=@protonmail.ch
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, May 27, 2021 12:13 PM, Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> wrote:

> On Thu, 27 May 2021 17:09:34 +0000
> "mah.kitteh via perl5-porters" perl5-porters@perl.org wrote:
>
> > What I can't seem to find is the conversation on why it needs to be
> > implemented at such a low level. If I understood this particular
> > piece with some clarity then I'd be happy to never post about "trim"
> > again.
>
> It doesn't. It'd be great if core perl had amuch lighter-weight
> mechanism for doing all of this. If maybe someone could write a ~10line
> C function to attach to e.g. `string::trim` in a way that doesn't
> require a huge disturbance to keywords and parsing and opcodes and
> everything else, then we could use that same mechanism to apply a huge
> number more core functions under namespaces like string::, math::,
> scalar:: and so on, and have a lot more useful utility functions
> around, without all this heavyweight stuff.

Thank you, I can get behind this.

>
> That mechanism doesn't exist.
>
> Yet.
>
> Want to write it? ;)

No.

Cheers,
Brett

>
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Paul "LeoNerd" Evans
>
> leonerd@leonerd.org.uk | https://metacpan.org/author/PEVANS
> http://www.leonerd.org.uk/ | https://www.tindie.com/stores/leonerd/



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