On 17/08/2025 18:15, Claude Pache wrote:
The difference of naming is probably the least problematic difference,
and attempting to reduce that specific difference without regard to
the other ones, won’t reduce confusion.
As I said in my previous e-mail, I think this is a straw man argument.
A developer coming to PHP from any combination of JavaScript, Perl, C#,
Java, VisualBasic, Python, Ruby, Swift, Elixir, Dart, Rust, even Excel
... is going to look first for a function called "split" or some
variation of that. If they have any common sense, they'll know they need
to look up exactly what arguments it needs, and what options it provides.
Unless for some reason they're familiar with the 1980s research language
Modula-3, or some equally obscure language not listed on the Rosetta
Code page I linked, they are never going to look for a function called
"explode".
If we don't want to add an alias, we should probably add a fake manual
entry pointing people in the right direction, like we have for "delete":
https://www.php.net/delete
--
Rowan Tommins
[IMSoP]