Re: RFC Concept: "Import" of simplied string man ipulation and other instructions from ASP Classic
| From: | Rowan Tommins | Date: | Sat, 25 Sep 2021 20:55:02 +0000 |
| Subject: | Re: RFC Concept: "Import" of simplied string man ipulation and other instructions from ASP Classic | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-116169@lists.php.net to get a copy of this message | ||
On 25 September 2021 21:17:22 BST, Daniele B <my25mb@aol.com> wrote:
>Hi Rowan,
>Unfortunately I can't post all the code here by the mailing list cause the message size
>limit.
Well, that's easily solved: put it online, as a github gist, a blog post, wherever you like,
and link to that.
However, much better than the code would be one-line summaries of what these functions are *for*.
Your code for str_place leaves me more confused than before: What's the magic tilde for?
What's the other magic value in the else clause? And why is it called "place"?
Similar questions arise for a lot of the other functions you mention. I suspect the problem is that
you've been using them for years, so they feel obvious to you. You need to step back, imagine
you'd never heard of them before, and explain why *those particular functions*, of the millions
of possible helpers, should be added to PHP.
Regards,
--
Rowan Tommins
[IMSoP]