Fwd: Re: [PHP-DEV] Woah
| From: | Zeev Suraski | Date: | Sat, 08 Sep 2001 21:46:17 +0000 |
| Subject: | Fwd: Re: [PHP-DEV] Woah | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-65499@lists.php.net to get a copy of this message | ||
Ken - see my point? :)
Andrei - ugliness is not a metrics, anymore than disappointment is. Fact - gettext(foo) is much less magical and much more understandable than _(foo).
Date: Sat, 8 Sep 2001 10:45:53 -0500 From: Andrei Zmievski <andrei@ispi.net> To: Zeev Suraski <zeev@zend.com> Cc: Chuck Hagenbuch <chuck@horde.org>, php-dev@lists.php.net Subject: Re: [PHP-DEV] Woah On Sat, 08 Sep 2001, Zeev Suraski wrote: Again, by deprecating it now, the immediate action would be removing any reference to it from the documentation (the very little there is). There are a hell of a lot PHP users to come than there are existing users of PHP, so we might as well limit the scope of the problem. We can also advertise that this function will not be staying with us in the future, and that people should use gettext() instead. We can add an E_NOTICE to it, which would make fixing it a trivial single command. When we actually remove this alias can be determined in the future. To me personally, gettext('This is my string') is a lot uglier than _('This is my String'). I think _() could be made an exception to the function-naming rule. -Andrei Give a man a fish; you have fed him for today. Teach a man to fish; and you can sell him fishing equipment.-Author unknown