Re: Woah

From: Date: Sun, 09 Sep 2001 00:35:04 +0000
Subject: Re: Woah
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-65513@lists.php.net to get a copy of this message
Quoting Rasmus Lerdorf <rasmus@php.net>:

> This doesn't mean I agree with the magic _() function, but until we have
> some sort of efficient run-time function aliasing mechanism like they do
> in Python, removing _() and telling people to create a user-space function
> that calls gettext() is not going to make the gettext using people very
> happy with us.
>
> The way this was solved in Python is that they have a gettext.install
> method which creates the _() function in the builtin namespace.  The
> function is only present once this install method is called on the gettext
> object.  See http://www.python.org/doc/2.1/lib/node187.html

Having some elegant solution like either of the ones outlined above would go a
long way towards making yanking _() out of the gettext module seem reasonable to me.

Zeev: were it being added now, no, I wouldn't argue for it. My argument is based
on it having been there for years and being in heavy use in some people's code.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
Some fallen angels have their good reasons.


Thread (121 messages)

« previous php.dev (#65513) next »