Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105254 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 26478 invoked from network); 12 Apr 2019 00:19:27 -0000 Received: from unknown (HELO mail-io1-f52.google.com) (209.85.166.52) by pb1.pair.com with SMTP; 12 Apr 2019 00:19:27 -0000 Received: by mail-io1-f52.google.com with SMTP id c4so6649115ioh.9 for ; Thu, 11 Apr 2019 14:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cMbETChEhCBh3tnlPoQrAfjQ0v7zm7Lo1Uues+b+WpA=; b=Zt9xI57KJPQZOQn+TjUEf6lLFe8XRF6v+k9WbXW2WBzPA/QnUgXnSX/NBepYK5lGf8 lyHiI4A3UbEMV2xaVn6ntrzf5MKNNZ+8hm/BsEzVzfmoQvgKfRgIGd68zVjuzBONiz00 mWLMfn51kFbGNLBpGwa13I+Cy0mSkl6qxLpHsQBxfclAZWkQVvkRlbM5gcK83evbOkN9 iMF6u7Bp9SoLDVBfQqdouybaay8iv9eDgaeomsfAdOFf/Pfh+YYkcqnHWcfZOXHf1a8G dRfjjQrQLfLn/Os7qx6B3I1iSMogXL8hNQSTJbH2nL+HMq6NZ8F7CdEsgJkOaYRnnwoF QE8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cMbETChEhCBh3tnlPoQrAfjQ0v7zm7Lo1Uues+b+WpA=; b=ZSB1OXG2wTz+rb0Fp1jGySKKPSUv8dNNY48ytxaxs2+WWFbEMvsdtk2BSK/+kVJ6Kd fL4B1j2sFO0NllRpNpY3J9nnLAQMtHyzo8mT4vZ7R0JW7A1XVEVd47nFZOzhMsciuAkM 6DefU5HYvtELLy5JphKTAp6U5LshnsgXHKkeZTZeMT91HNjqasrXr4mGjW7vZaEQIp0O ZH5ZfAZX+qxJ05Rsq5AFYM6/KVVsWpa+N14lqd0xce9CoWrQxxmA16O3P6nLXWwNjHoX KKdig5SG1+01bHgOaLLMERhZqrvxN+73YLWdKAYOpsb7i+NUp0rvT52FtUeeIv1O4KGO Zb4w== X-Gm-Message-State: APjAAAVAkZ1+BlbqVTvIURntErWx0W5CIl9gipJLfXi20N5iYo4yUvf4 4noZtJJ/PHBL9mX3P25u4H7PrKYWp8w5Afr+cHQ= X-Google-Smtp-Source: APXvYqxaXjtqnHK0dtz2b9pprniVmhAq/waIBo1IjbRgsVFfjGsXns9Jw6tJFkgz73UctZfSuez336gVruQy0E12Atg= X-Received: by 2002:a6b:e706:: with SMTP id b6mr34806738ioh.78.1555017415694; Thu, 11 Apr 2019 14:16:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 11 Apr 2019 23:16:43 +0200 Message-ID: To: Michael Morris Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000aea236058647b462" Subject: Re: [PHP-DEV][DISCUSSION] Multilingual PHP From: benjamin.morel@gmail.com (Benjamin Morel) --000000000000aea236058647b462 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The problem with this approach is that while it may become more readable for the native speaker, it becomes pretty much impossible to read for the rest of the world. Having one single syntax for everyone allows all programmers in the world to share code. I can't imagine a world where I'd find a library based on Russian PHP on GitHub, that I can't contribute to or even understand (I probably wouldn't use it). English has the huge advantage to be quite simple to learn for basic purposes, and it has a limited alphabet, composed only of ASCII letters. I'm not a native English speaker but have never been bothered by keywords being called IF and THEN, even when reading BASIC books as a child before taking any English course at school. This may be harder for people having a native language with a different alphabet, though. - Ben On Thu, 11 Apr 2019 at 22:32, 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? > > The php.ini file could set the default language, the .htaccess file could > also on per directory. > > I'll stop there cause I know there are problems I haven't thought of. And > I'm not going to argue the syntax I just kicked out from the top of my he= ad > is the best either. > > But I think it's worth the effort to at least look into the problem. Wir= ed > has a point - people learn to code faster when they are working with thei= r > own language. One of the stated goals of PHP's design has been > accessibility so this seems to be appropriate. > > I yield the floor to those smarter and wiser than I. > --000000000000aea236058647b462--