Agreed, but is the speed loss really worth crying about? It is negligible
calling a userspace function versus an internal compared to the greater work
that the typical PHP script does. Hell, it's negligible compared to the work
gettext does! Nevertheless, your point is made and is fair at that. I
propose tackling the problem as mentioned in my previous email, by devising
a new runtime function aliasing system ala C #DEFINE style. This can satisfy
all parties involved, and while it won't be the easiest solution, I think it
will be the most beneficial in future problems of similar nature.

Regards,


Cristopher Daniluk
President & CEO
email: [EMAIL PROTECTED]
direct: 330/530-2373

Digital Services Network, Inc
Unleashing Your Potential
voice: 800/845-4822
web: http://www.dsnet.net/


-----Original Message-----
From: Andrei Zmievski [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 08, 2001 11:48 AM
To: Cristopher Daniluk
Cc: 'Chuck Hagenbuch'; 'Joey Smith'; 'PHP Developer List'
Subject: Re: [PHP-DEV] Woah


On Fri, 07 Sep 2001, Cristopher Daniluk wrote:
> Again, as mentioned before, this is suitable:
>
> function _($string) { return gettext($string); }
>
> once in your code. Voila, now you can still have your short cut, and we
can
> still have our consistent naming structure. Sure, it would be an
adjustment
> at first, but I personally believe it is worth it. We don't lose anything
> other than maybe 5 minutes of confusion after upgrading. By making it VERY
> clear in the release update, we can avoid major headache. For what it's
> worth:

Having a user-space alias such as this will make the i18n'ed programs
run slower.

-Andrei

Commitment, n.:
Commitment can be illustrated by a breakfast of ham and eggs. The chicken
was involved, the pig was committed.
BEGIN:VCARD
VERSION:2.1
N:Daniluk;Cristopher
FN:Cristopher Daniluk
ORG:Digital Services Network, Inc.;Executive Management
TITLE:President & CEO
NOTE;ENCODING=QUOTED-PRINTABLE:=0D=0A
TEL;WORK;VOICE:(330) 530-2373
TEL;WORK;VOICE:(800) 845-4822
TEL;CELL;VOICE:(330) 219-4819
TEL;WORK;FAX:(208) 723-6782
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;President;89 West Marshall Avenue=0D=0ASuite A;McDonald;Ohio;44437;United S=
tates of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:President=0D=0A89 West Marshall Avenue=0D=0ASuite A=0D=0AMcDonald, Ohio 4443=
7=0D=0AUnited States of America
URL;WORK:http://www.dsnet.net/~cris
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010528T230445Z
END:VCARD

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to