Re: what happened to that new isset() like language
| From: | Johannes Schlueter | Date: | Fri, 09 Jul 2004 00:50:22 +0000 |
| Subject: | Re: what happened to that new isset() like language | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11010@lists.php.net to get a copy of this message | ||
Marc Richards wrote:
> They won't. Not until they hear about it or read about it. But that is
> true whether it is a function or and operator. Making it a function
> won't make everyone magically cogniscent of it. Of course it will be
> important to make it easy to search for information about it on PHP.net,
> which includes allowing people to search for ?: and providing a courtesy
> link from the ternary operator section.
And if they read about it they start searching. And many people know how to
search for http://php.net/functionname, which works well,
but searching for
http://php.net/?: would result in the index.php. So the user needs
to
search through the manual and without knowing the name of the operator it's
hard for to seperate between "? :" and "?:".
I'd like the ?:-Syntax very much but I'm not sure wether it realy fits into
PHP - PHP is not Perl ;-)
johannes