Re: Woah

From: Date: Sat, 08 Sep 2001 15:45:53 +0000
Subject: Re: Woah
References: 1 2 3 4 5 6 7 8  Groups: php.dev 
Request: Send a blank email to php-dev+get-65476@lists.php.net to get a copy of this message
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

« previous php.dev (#65476) next »