Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105575 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 48535 invoked from network); 3 May 2019 01:21:22 -0000 Received: from unknown (HELO mail-qt1-f194.google.com) (209.85.160.194) by pb1.pair.com with SMTP; 3 May 2019 01:21:22 -0000 Received: by mail-qt1-f194.google.com with SMTP id m32so1539027qtf.0 for ; Thu, 02 May 2019 15:24:07 -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=c+yULXGTH7ZtFajP8BAbGBKjj/1Dq6/PZF4cL8bjgmk=; b=rMOctQmcWL5GW/QZp2e5vsNw626jX4Pt9qt6k4YSeyA5Pq0Gg/jYSKZemOjv9Yr5eQ Jy5lw9e8rwTLYtkyNJWlLNrBLka8LpvnipAxSRieL+QfTmN/54jlR0h5mkMO+HGC585C FBXjJdlNVLj6tfrZkw8p0FslJE3SO0BqH4ovBg1KHGmaJ1PLAVJmzE8k6/Z3wio9AiOa lxGTBUZXfuh4REgEHpZ8fhzXIQocPWEEe8FjemNx9DDvHsGLQ32q1jmiI2Iy/Yh5zvVN cmM70R+gzZO2X3dvFyTtxFGPWO5lZ20d2ca64284vHeqYRSHJVgaaC/MB07UKSaGblOc xYJw== 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=c+yULXGTH7ZtFajP8BAbGBKjj/1Dq6/PZF4cL8bjgmk=; b=toeL9/oaQ0asVMZajnbPxKKQOnOqiSWwb9kwY1KYOvC7hmm2QeDmfR/TPfUKMAPrLQ LG9BywRVP4hpE3kLxkQTVfmhd6fMBfQ9imDB+Qhgiq6FYSFAZMHNDl/2oIwGV217lTet TJvOhAlZCe/2/s9qBL0DTr9LWH5LlkQSFO6iSF8NvrHd4LZY9gZxZ4nzEVP5NvFmKdMO 5pUieUzlW50olPj1EXUXNyUAYpGM83Q7lVHmmrhYTpjhWCGHakb8IhbbI3LEhEmePzux SiskSYty6O0Fwaq4HoP/Cgf7HBrcC28GnpCZbVI7F1Ob9SDs7A7BA4H7fB1wXeRmMieO OcZA== X-Gm-Message-State: APjAAAXXm8OEXY10PvDrWz0BqnywSYH8p1etMPQkTvg71XXFG0Ar1SAP +impc6OdqeWInipaMeIOwY1d8w3Kvp6q5DitOCmupehV9kU= X-Google-Smtp-Source: APXvYqwmzkUcmpDUpFcVWl890IFOyuKBO2CFfCoZRoMwYO54HmrWFQx7D31G2jeEBeBBqXb1bC1D7h6I+xpYtphasfU= X-Received: by 2002:a0c:d033:: with SMTP id u48mr5222798qvg.40.1556835846792; Thu, 02 May 2019 15:24:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 3 May 2019 00:23:55 +0200 Message-ID: To: Benjamin Morel Cc: Michael Morris , PHP internals Content-Type: multipart/alternative; boundary="0000000000009f2b3c0587ef17ef" Subject: Re: [PHP-DEV][DISCUSSION] Multilingual PHP From: legale.legale@gmail.com (Legale Legage) --0000000000009f2b3c0587ef17ef Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable We (Russians) have got such experience already. The language is 1S where syntax is Cyrillic. This kind of syntax doesn=E2=80=99t like even Russian p= atriots. =D1=87=D1=82, 11 =D0=B0=D0=BF=D1=80. 2019 =D0=B3., 23:16 Benjamin Morel : > 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 > the > > development hurdles of the language itself being multilingual? > > > > From what I understand of the compiler - maybe not that much. The > language > > requires an opening tag, so we could hook into that like this example f= or > > 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 cou= ld > > also on per directory. > > > > I'll stop there cause I know there are problems I haven't thought of. A= nd > > I'm not going to argue the syntax I just kicked out from the top of my > head > > is the best either. > > > > But I think it's worth the effort to at least look into the problem. > Wired > > has a point - people learn to code faster when they are working with > their > > 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. > > > --0000000000009f2b3c0587ef17ef--