Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105573 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 43286 invoked from network); 3 May 2019 01:05:24 -0000 Received: from unknown (HELO es-i.jp) (180.42.98.130) by pb1.pair.com with SMTP; 3 May 2019 01:05:24 -0000 Received: (qmail 13851 invoked by uid 89); 2 May 2019 22:08:07 -0000 Received: from unknown (HELO mail-oi1-f178.google.com) (yohgaki@ohgaki.net@209.85.167.178) by 0 with ESMTPA; 2 May 2019 22:08:07 -0000 Received: by mail-oi1-f178.google.com with SMTP id 143so3002378oii.4 for ; Thu, 02 May 2019 15:08:05 -0700 (PDT) X-Gm-Message-State: APjAAAU3qv/D+WW0heFMl56uRrBSkLMse+zkQq3E+SO5nB46RvyNEWOV 03ZApVqyfChV1zf2oUi4ApiYW4mHRFEOXdQdAw== X-Google-Smtp-Source: APXvYqxxS90KziTaQm3z33zeZvi2c/3LI727GDtuGk8LnW/6MJDidSF42egTihAWiWltAud5FiFzrJeZYOLMORSZSEE= X-Received: by 2002:aca:aa43:: with SMTP id t64mr2252303oie.12.1556834880152; Thu, 02 May 2019 15:08:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 3 May 2019 07:07:23 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Michael Morris Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000016a760587eedee7" Subject: Re: [PHP-DEV][DISCUSSION] Multilingual PHP From: yohgaki@ohgaki.net (Yasuo Ohgaki) --000000000000016a760587eedee7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Apr 12, 2019 at 5:32 AM Michael Morris wrote: > Submitted to the floor is a Wired article from 2 days ago I came across > > > https://www.wired.com/story/coding-is-for-everyoneas-long-as-you-speak-en= glish/ > > The manual of PHP is translated into multiple languages - but what are th= e > development hurdles of the language itself being multilingual? > > From what I understand of the compiler - maybe not that much. The langua= ge > requires an opening tag, so we could hook into that like this example for > Japanese > > > A PHP opening tag with such a qualifier would change over all function > names and reserved words. Could these would be set on a per file basis? > Interesting idea. This may be good for kids to learn programming language. PHP's parser is compatible with UTF-8, so code like this works. [yohgaki@dev ~]$ cat t.php