Re: [PHP-DEV] Strict typing

2010-08-12 Thread Daniel Egeberg
would be consistent with how the APIs are documented in PHP's documentation, so the syntax in PHP would not conflict. 2) +int isn't used anywhere, so it's obvious that it's something different and it's easy to see in API documentations, auto-completion, etc. -- Daniel Egeberg -- PHP Internals - PHP

Re: [PHP-DEV] Strict typing

2010-08-11 Thread Daniel Egeberg
as that's apparently how things are decided, it would be nice if people won't have to waste your precious time making obnoxious feature requests that are *clearly* against the PHP axioms. -- Daniel Egeberg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http

Re: [PHP-DEV] Namespace separator constant

2010-08-10 Thread Daniel Egeberg
= '\\'. A default PHP constant would be a better way to handle such cases. It is already constant (i.e. it's always a backslash). What do you need a constant for? It's not system nor configuration dependent. -- Daniel Egeberg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit

Re: [PHP-DEV] [RFC] Return type-hint

2010-07-29 Thread Daniel Egeberg
to the trunk, I don't know. ps: the spam filter rejected my previous email because of the codesearch links... Tyrael -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php -- Daniel Egeberg -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] Remove variable function and method calls

2010-07-23 Thread Daniel Egeberg
of the public to set expectations. If the documentation is missing information about BC breaks, please file a doc bug at http://bugs.php.net. If nobody is aware that it is lacking, naturally it won't be improved. -- Daniel Egeberg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe

Re: [PHP-DEV] Type hinting

2010-05-27 Thread Daniel Egeberg
say that the code indeed is bad. Unless you regard 123abc as a valid value from your user, don't allow the user to give you that value. If you regard it as a valid value, then it's not an int thus you wouldn't want to type cast it in the first place. -- Daniel Egeberg -- PHP Internals - PHP

Re: [PHP-DEV] Type hinting

2010-05-27 Thread Daniel Egeberg
to int is a non-issue. -- Daniel Egeberg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Type hinting

2010-05-27 Thread Daniel Egeberg
explicit types. For examlpe, we may add a switch in php.ini, let's say, explict_types=On/Off. A php.ini setting is a really bad idea. Say that Library A expects it to be On, but Library B expects it to be Off. Now what happens if I want to use *both* Library A and Library B? -- Daniel Egeberg

Re: [PHP-DEV] Autoboxing in PHP

2010-05-04 Thread Daniel Egeberg
, etc.? These classes could maybe even be extended with method aliases to the relevant functions in PHP's library. -- Daniel Egeberg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] ArrayAccess::offsetGet not returning a ref

2010-04-27 Thread Daniel Egeberg
that a fatal on such prototypes error is not warranted, so I'd prefer (d). What do you think would be the best option? Can you think of another? -- Daniel Egeberg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] SVN Account Request: gerardobenitez

2010-04-13 Thread Daniel Egeberg
On Tue, Apr 13, 2010 at 16:21, Gerardo Benitez gerardobeni...@gmail.com wrote: Translating the documentation What language do you intent to translate it to? -- Daniel Egeberg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php