Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124150 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 C0DBB1ADC47 for ; Mon, 1 Jul 2024 17:03:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719853485; bh=XBQcbtYIvizQ2CiRyyC5ZC1JCG7BWwmYmXuXEBp5wno=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YL0NUoW1EuS9nbKTC4XPk0W76PBudXRzj8TBzYGtczOcCcDAJ6fHIk+q62CEwB7vG BjekV+6DgDzKNXzCW9aC87tHag3OkhuIjiqkiHB/cHaxPUcVut/dWm7TRHCvdwv6W3 LeC1iXi57pla1zgoul96+LIzOwHZ2DsmiXHh1ksKH9c7ExpfBQMNIfbW9gD0U5YOIn QxrEVR4Tf/ZPttba2PSzq6deAz35LUCAJEbKhEmjKjg1+nRjv5DBSCq+FaMDwy/0QT u1kRmrLJLrJbgWI/CZ9GZrVHo9alTwRIR0/iMrrHweJSzaQIpJJvwHpS0K7QdAq9mL lFoP0yrtCPCIA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5460D180A83 for ; Mon, 1 Jul 2024 17:04:43 +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.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE,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-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) (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 ; Mon, 1 Jul 2024 17:04:41 +0000 (UTC) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-64b5617ba47so25375697b3.3 for ; Mon, 01 Jul 2024 10:03:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interi-co.20230601.gappssmtp.com; s=20230601; t=1719853400; x=1720458200; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XBQcbtYIvizQ2CiRyyC5ZC1JCG7BWwmYmXuXEBp5wno=; b=rsDihxdv07cmPNAUqo0jOeMRJ1xCs1lpmtfJfjg6c0kjAlP1A2K0O/LU9AqgDaDqsZ wed4EOfz0wmBwBNrM8UF1YrSkGZzNqkApINUqQ46sVbpVlVAdgRqmGELNuC4djvkrS5y WOJwhqgvct5hB0yyBKI71hjeFUUC+fJ1ST1SKuwVGnfi10mK47kHE1F2PKsHncnfl8eH lzyMMzgpyJ+MDbE4GGtd5xmYaTJ0vM4Xzk4gpgrBDOgO9xi5sBMT+Gkc19l4zTjgA/ud u99oK81f4BzMGb30fRJdQQhCrAsmTW2AAakLVClfSjoaKy1RVP4A+uQSxBbMP/GKl76h kuFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719853400; x=1720458200; h=content-transfer-encoding:cc: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=XBQcbtYIvizQ2CiRyyC5ZC1JCG7BWwmYmXuXEBp5wno=; b=G1IX2rYYjTZ7cwTfzsJ9JsG/LTjpTsdS+9uB/ZAozv9YsTBm/BwbfSRr4oCNTBtyTg xso01LWDwZ4XWcfTEs1FjcklcSGq4f2OvWDSLGPBHfVGkUzPfSmbkyUBQvJvM9sTlJnr nKR7wjYKlbH1EV6BKUou12lxOC439GA1orUuxQtnMkqjsZQnmsRifViSFa9fIIYSiGdN vf07PziC8EeMkq323kvaK65ZNhR1gsZFzjP/rYleJ+HNZuHky7U98pt+fsUC5H2Eh5iY 6fnpKWXps+LctmMSBL2nfOTyW14rSPmJ50bfyuwrmR2E5sA1/v91Rg9RivxZBgdW6fsX uAVw== X-Gm-Message-State: AOJu0YzOSDKM6mRTHVc0R3/aHdN9k8HBxbVEnTlXLYl47+svxxWu2W5t 9IP8abCsLpkNGqE6yzviIBB2Q6v8FetO+yEvwibuDAYnCo/AkahaqwemJSfayXg8u2crON1O4vS u+FE8mqX5ZtH5MoDzn1DSS0FPy72iHR/SwONZzbJiXtlrzxZf96Y= X-Google-Smtp-Source: AGHT+IHssY37Yi4fNsLytIMs/HySyJDyKsKiI4pcpHJqlev56/oNw8/HeAQQvo5RxzYI+NEK8cRscCFfP9A74hqxGKo= X-Received: by 2002:a0d:e682:0:b0:64a:49a4:3e9 with SMTP id 00721157ae682-64c71aeb4e8mr45091087b3.19.1719853399894; Mon, 01 Jul 2024 10:03:19 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: <1917CF7C-26D8-4DBE-B05C-5AA650AC6C9F@rwec.co.uk> <551cd5b0-1c00-4818-a9ca-97f6b7e8c3dc@app.fastmail.com> <39B496F8-062E-4848-9B3B-529BE8D3415A@newclarity.net> <856F4F70-DC81-4098-82DD-5F6D47CDF3F0@newclarity.net> <217db044-e356-4e18-ba68-c18dce6381a5@app.fastmail.com> <8D065175-9383-4110-A245-7E876AF88281@rwec.co.uk> In-Reply-To: <8D065175-9383-4110-A245-7E876AF88281@rwec.co.uk> Date: Tue, 2 Jul 2024 02:03:08 +0900 Message-ID: Subject: Re: [PHP-DEV] Iteration III: Packages (was Re: [PHP-DEV] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript) To: "Rowan Tommins [IMSoP]" Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: alex.pravdin@interi.co (Alexander Pravdin) On Tue, Jul 2, 2024 at 1:20=E2=80=AFAM Rowan Tommins [IMSoP] wrote: > On 1 July 2024 15:37:49 CEST, Alexander Pravdin = wrote: > >I personally support the movement from the current "plain-text > >template-first" language to a "coding-first" language, where files > >contain code by default. > > I honestly don't read the > Any suggestion to add a special of avoiding those 4 characters scores a b= ig shrug from me. The issue is that without this legacy "magic number" the PHP file contains plain text/html/whatever. This is weird. This means PHP is a template processor in the first place. And adding some code is a feature on top of the template processor. I was actually talking not about avoiding 4 chars for the sake of avoiding 4 chars, but about making the PHP source file a programming code file, not a template. And in addition, cut some weird legacy allowing further engine optimizations. Historical/legacy/BC reasons pop up regularly in discussions about something that can not be optimized/improved. What is the percentage of files containing PHP code only and pure PHP templates in an average project? 100% vs 0%? 99% vs 1%? Who uses plain PHP templates today? Why programmers should care about templating legacy in each and every PHP file? I think it's time to switch from "templating PHP" to "programming PHP". Alexander