Aidan Lister wrote:
I think PHP 6.0 provides an excellent opportunity to rectify a huge number
of frustrating inconsistencies; it would be a shame not to make the most of
this.
The two biggest inconsistencies raised by users and "language comparison"
groups are a) function argument order, and b) function naming.
Granted, swapping the arguments will be nightmarish for the users. However,
we have a long time to discuss possibilities to alleviate the problem. I
agree with Jani, a list of inconsistencies should be compiled and discussed.
If it is decided that swapping the function arguments around would be too
cataclysmic for upgrading users, we should at the very least institute a new
strict function naming policy.
My favourite example of inconsistency is htmlentities and
html_entity_decode. These are easy to fix, and a relatively easy BC break
for the user to deal with.
I suggest we extend Jani's previous suggestion; by including a list of
function name inconsistencies in the discussion.
Or...
<?php6
... pure PHP 6 mode
?>
<?php
... Some sort of BC
?>
[]s
André AE
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php