Re: [VOTE] Voting opens for str_starts_with and ends_with functions

From: Date: Mon, 08 Jul 2019 15:13:37 +0000
Subject: Re: [VOTE] Voting opens for str_starts_with and ends_with functions
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  Groups: php.internals 
Request: Send a blank email to internals+get-106178@lists.php.net to get a copy of this message
On Mon, July 8, 2019 at 9:10 AM Sara Golemon <pollita@php.net> wrote: > On Sun, Jul 7, 2019 at 3:45 PM Theodore Brown <theodorejb@outlook.com> wrote: > > > For those voting against adding these functions, can you clarify why? > > Explaining my non-vote. I'm explicitly abstaining as I don't see the > value in these functions (I'd rather see a community driven library > which does the same thing in a more agile way), but neither do I see > much intrinsic harm in allowing these functions in. Thanks Sara. I understand your perspective of not wanting to add more functions to PHP core which can be easily implemented in userland. However, when it comes to basic string functions which are needed in almost every script, I don't think it makes sense to ask users to depend on an extra library for this. Almost every other language has built-in functions for simply checking if a string starts or ends with another string. Best regards, Theodore

« previous php.internals (#106178) next »