CARVIEW |
Select Language
HTTP/2 200
server: myracloud
date: Sun, 12 Oct 2025 02:50:54 GMT
content-type: text/html; charset=utf-8
content-length: 2793
vary: accept-encoding
content-encoding: gzip
expires: Sun, 12 Oct 2025 02:50:54 GMT
cache-control: max-age=0
etag: "myra-b9e183ad"
php.internals: Re: Flexible function naming
Re: Flexible function naming
From: Rowan Collins Date: Mon, 16 Dec 2013 18:16:35 +0000 Subject: Re: Flexible function naming References: 1 Groups: php.internals Request: Send a blank email to internals+get-70665@lists.php.net to get a copy of this message
Robert Cerny wrote (on 14/12/2013):When a PHP code base is growing over time it looks more and more 'diverse', because of inconsistent function and method naming in core PHP and third party librariesThis comes rather close to ignoring one of the pieces of advice on "The Mysterious PHP RFC Process and How You Can Change the Web" [1] which is linked to from the RFC HowTo on the PHP wiki [2]:Don't start an RFC (or mail list discussion) about standardizing PHP function names and function argument ordersWe all know that PHP's core functions are drastically inconsistent, but you need to be very sure you have a new and simple approach to solving that problem before expecting much enthusiasm for it.It should be possible to use 'array_key_exists', 'arrayKeyExists' or 'arraykeyExists'.This looks to me like making the language *more* inconsistent, not less. Why should different projects be able to call the same built-in function by different names? If you're thinking more of third-party code not having matching coding conventions, then you might be interested in the work of the Framework Interoperability Group [3] who are aiming to agree a set of voluntary standards for just this kind of thing. That doesn't need any changes to the core language, just for framework and library authors to use an agreed set of conventions. [1]: https://blogs.oracle.com/opal/entry/the_mysterious_php_rfc_process [2]: https://wiki.php.net/rfc/howto [3]: https://www.php-fig.org/ Regards, -- Rowan Collins [IMSoP]
Thread (14 messages)
« previous | php.internals (#70665) | next » |
---|