Re: @_ (was: _ and Woah)
| From: | Zeev Suraski | Date: | Sat, 08 Sep 2001 23:32:18 +0000 |
| Subject: | Re: @_ (was: _ and Woah) | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-65509@lists.php.net to get a copy of this message | ||
Why,
@_("foo");
has a great sense of natural beauty to it :)
At 02:30 09-09-01, Chuck Hagenbuch wrote:
Quoting Zeev Suraski <zeev@zend.com>: We can add an E_NOTICE to it Oh, god, PLEASE don't do that. Some of us actually develop and run our personal sites (like the one I'm writing this mail with) with error reporting set to E_ALL. It's good coding practice, helps me write clean code, and if you do this, I'm going to have to add @ to _every_ gettext call in my code for things to work, That would be an absolute nightmare. You're also cutting off the option for users to define an alias, since there'd be just too many versioning issues - if the function goes away, we can check for it, and if it's not there, alias it. If there's an E_NOTICE stage in between, we're just fucked. -chuck -- Charles Hagenbuch, <chuck@horde.org> Some fallen angels have their good reasons. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net