Re: PHP6, Unicode for language functions, classes,methods, vars names
| From: | Rasmus Lerdorf | Date: | Thu, 15 Sep 2005 03:12:50 +0000 |
| Subject: | Re: PHP6, Unicode for language functions, classes,methods, vars names | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18944@lists.php.net to get a copy of this message | ||
Makoto Tozawa wrote:
> Jani Taskinen wrote:
>
>> Show me one such person please. One that does this using PHP. :)
>> One that really NEEDS this to be possible..
>
>
> It's impossible to find one as PHP doesn't support it today.
>
> Think of defining a class which encapsulates a database table, and the
> table name and column names are in native languages. If PHP restricts
> the class and function names to ascii characters, programmers need to
> maintain the mapping from the table name to the class name, and the
> column name to the set/get function name. Can you guess how painfull
> it would be?
> Think of a code generator which generates classes from database tables.
> What kind of class/function names the code generator could automatically
> generate if the programming language restricts the identifiers to ascii
> characters?
Same goes for SOAP, COM and Java integration. All of these potentially
need to map to unicode identifiers and trying to work around this would
be annoying.
-Rasmus