Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124057 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 8F9CF1A009C for ; Sat, 29 Jun 2024 18:13:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719684872; bh=280h8wa4xwNYADOvEM9QHEMQiHnrg8j/R6PJQQof+vg=; h=References:In-Reply-To:From:Date:Subject:To:From; b=AOAoqcXlU+s6dK9vxu/Y+brK2XKjLwWJz/y05eUOqxqvXCsLxWCSXunw6/MDZ8wLh AVfQYIBUTp9aj8hMN52Pqocr9DW88ALW07oqTD2+Tz9PjsH+1qJ3QwGCaqY7OveE7s ekX2ZyatR6KSo/4h8NtymJNgQZ8lF00sVb96kO2MMukYci3RDFTSv65Ck8PTvsJnn+ 8S5Fi+BBZYQfgJ0Jg+liMKo5/XzgqKOWQv7U+9ADT8Y65SSkzZe45tK/VapKYSZowy dIY6/swtDnHCA8dBsYNuxl0CDwG4LwYwOQjVFplcf8aTL9n09IYkrwwmmw+/lQdjqZ 1fagud1djQkhA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0E583180BB0 for ; Sat, 29 Jun 2024 18:14:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 29 Jun 2024 18:14:31 +0000 (UTC) Received: by mail-ot1-f48.google.com with SMTP id 46e09a7af769-6f8ef63714cso882390a34.1 for ; Sat, 29 Jun 2024 11:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719684791; x=1720289591; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=BJeiGHz9qU/ORJ8PSk3RXtgZrNCXXNkByEAvyMre+00=; b=R7k0TwVHyT40+mgCyQlpQIi39F6Ea/Hf9zAxj7rdQIqsBTv6WAMNtZL8/c5kmhwbZN KWpjG4ZAmPckxb5HXR2EVfMXQ3zn6NuBkkqQfKxHCZKeVpyPWRKcSV7mwqBvL6becPH+ PkNpIElLVdzOns/ZDx7Oc+zp1ZS2MKxbAWnDFoT/Y1Je3nnqNN2nfZ1OX+M89nIvX2+F +XokeQXdp4SqGisuGfV/2iplvA/5KHF/ZWRp1nJZIjz8cPtnBE12OcGpUnTcV7UnmKqS 8zf5t++KKwr0omdKJyFpgioJrE+P0PTHM+vh4BFnWyqt3lFWqMBbEVtlbM+beEBdyVZ+ /spw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719684791; x=1720289591; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BJeiGHz9qU/ORJ8PSk3RXtgZrNCXXNkByEAvyMre+00=; b=tFM3YaHJ02l9rXwLK9CB7ZbMD1XALs8wkhZiP8qoGexqkWmVjCgMDPXf3mPYBoof9Z hcocLxVu7ddm2JUJVzw9tQZ/QPTpWSbvhjWrh6Sf8qIYLo+98hg2+4PDjJp9oI/QrFzD IqFX+6GxYfJ3gk/gvkiSfocFqfgzO2o7NK00ZlLFsZtqmRYhysw1K5FDYiMPLuTVdnpq dOlzM0lD9nmp1rVgmPe6bwj+anpgiQnYaWSv/ly+0jIk+RbxQOT78fYigA0HdPbAXHlV JHAjPIpdJ+m1JR8cHN7A4hs9l2tCOMBLXUH5kssEmCzYoUGXg65UukhnuPVIGU8C8Scq 03SA== X-Gm-Message-State: AOJu0YzL2lDBQ22pCbNmhFCnq8hdlgyRdlVq7CnT6Oh5RiTaBlAo/fXo pQO4N0pVV7bS3Wz2VYq9He0XbTnTYsyUnAtZRKgAto2+1q4OWLu/8k01jWO3sdNvtJrEsInqkut 8i3a5nwxv0CfnIiUbfH9G3Z+pkMQ+jA== X-Google-Smtp-Source: AGHT+IFEikHOeHjdSKjl2c9iX+NTpPigp3THg5BnbA7imbS4SKcoBpN1I1/xjJoaK0n8nguJqO3cg2iwibKn+6tHIQg= X-Received: by 2002:a05:6830:1102:b0:701:ffd5:9186 with SMTP id 46e09a7af769-702076df1camr1838585a34.18.1719684791194; Sat, 29 Jun 2024 11:13:11 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 29 Jun 2024 19:12:59 +0100 Message-ID: Subject: Re: [PHP-DEV] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript To: PHP internals Content-Type: multipart/alternative; boundary="0000000000001ade86061c0b515b" From: davidgebler@gmail.com (David Gebler) --0000000000001ade86061c0b515b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 27, 2024 at 4:33=E2=80=AFAM Michael Morris = wrote: > Hello all. This is a ramble of an idea that's managed to run around my > head for a few days now. It isn't fully formed, but I've ran the thought > experiment as far as I can on my own and want to share it with all of you= . > > If you got this far, thank you. This overall idea to take one of the > better things to happen to JavaScript in the last decade and incorporate = it > into PHP has been bothering me for awhile so I figured I'd share. I don'= t > know how much merit there is to this though. > I don't think PHP needs to take many if any lessons from JS to be honest. JS evolved the way it did to solve its own set of problems, and likewise so has PHP. I'm not really clear from reading the whole thing what problems this loose bag of ideas is even intended to solve, really, but from what I have gathered it seems to me more like what you want is a transpiler a la Typescript and that this would achieve whatever you're trying to achieve. Personal take, but if there's one thing I don't want for PHP it's to become [any more] of a garbled mess of different styles and different ways of achieving the same fundamental abstractions and results. Composer and PSR-4 have become de facto standards, they're very good standards, we've achieved remarkable near unity in their adoption and whatever few inconveniences remain through the application of those standards in certain cases are minor trade-offs (not having multiple interfaces in the same file, etc.) A JS-inspired subset of PHP within PHP, supported by invocation through new keywords and handed off to a separate parser seems like it's asking for trouble at every level from implementation to maintenance to userland to dependency management... --0000000000001ade86061c0b515b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Jun 27, 2024 at 4:33=E2=80=AFAM M= ichael Morris <tendoaki@gmail.com<= /a>> wrote:
I don't think PHP needs to take many if any lessons from= JS to be honest. JS evolved the way it did to solve its own set of problem= s, and likewise so has PHP. I'm not really clear from reading the whole= thing what problems this loose bag of ideas is even intended to solve, rea= lly, but from what I have gathered it seems to me more like what you want i= s a transpiler a la Typescript and that this would achieve whatever you'= ;re trying to achieve. Personal take, but if there's one thing I don= 9;t want for PHP it's to become [any more] of a garbled mess of differe= nt styles and different ways of achieving the same fundamental abstractions= and results. Composer and PSR-4 have become de facto standards, they'r= e very good standards, we've achieved remarkable near unity in their ad= option and whatever few inconveniences remain through the application of th= ose standards in certain cases are minor trade-offs (not having multiple in= terfaces in the same file, etc.)

--0000000000001ade86061c0b515b--