Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117877 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 84433 invoked from network); 8 Jun 2022 16:04:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Jun 2022 16:04:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8762D180083 for ; Wed, 8 Jun 2022 10:51:00 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 8 Jun 2022 10:51:00 -0700 (PDT) Received: by mail-ej1-f43.google.com with SMTP id me5so42397179ejb.2 for ; Wed, 08 Jun 2022 10:51:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=CZ0dOF9p77mGTSMjOXbxL8HF4kE9+dTlNuij/UcCRX4=; b=x7uhyr068j80C+WzSF2e+Iye659y1vm89VxE16BFzsxAQ3rrYoBoux9onmNolu03J7 5ST55KLEH56HE96P0fQbzNJMIu64FTau5IY+I4ti6KybafTkuEiUbAg5WErPJisGqsWR xpajcKLmspAN6X2wj2+5omvoK5Sv74/8HFwxpy6wfHTDabFu2bjhWErOhcTam+6uHoZd +ip0HWmK6CSp9PAF35nXs+VrDkdfK6QDT2fROVefgyQNoUwG2ZyLE2RV/FSS+DWFgWlc uR2YFawPoGl718N/tiVv6SbLzd5Piqufg1pkI8uXOQr0VqjUIvT+pA4kbRN6L0+zsOtY DQSQ== X-Gm-Message-State: AOAM533/MHfhzcaJpCU5eM23n7RNBI1mjmSSTWQOeVq7ZXmU3+eigtKF IKL7B9eormZTf6dJ2mG1zxn9idjcnUHOsw== X-Google-Smtp-Source: ABdhPJwOO4FCzO/qfoEVfOBNCS6z29NkyKV86BKSuqe8dAbiiJA+dFAJUs46RpYwrqzUyQKexDeu2g== X-Received: by 2002:a17:906:72de:b0:711:f8c8:ba00 with SMTP id m30-20020a17090672de00b00711f8c8ba00mr3131075ejl.586.1654710658597; Wed, 08 Jun 2022 10:50:58 -0700 (PDT) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com. [209.85.128.41]) by smtp.gmail.com with ESMTPSA id t26-20020a17090605da00b006fe7d269db8sm9428231ejt.104.2022.06.08.10.50.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jun 2022 10:50:57 -0700 (PDT) Received: by mail-wm1-f41.google.com with SMTP id a10so8753722wmj.5 for ; Wed, 08 Jun 2022 10:50:57 -0700 (PDT) X-Received: by 2002:a05:600c:3790:b0:39c:62b9:b164 with SMTP id o16-20020a05600c379000b0039c62b9b164mr416587wmr.0.1654710657402; Wed, 08 Jun 2022 10:50:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 9 Jun 2022 02:50:45 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Robert Landers Cc: internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: Adding new closing tag =?> for keeping trailing newline From: sji@sj-i.dev (shinji igarashi) Hello! > I think you may just be dealing with a vocal minority and it would be wor= th putting to > an actual vote. Even if it fails, we'll learn something the next time > someone wants to change something like this. Thanks for the feedback! In my experience over the years of watching internals, many controversial language changes do not survive the voting. Two Yeses are balanced against one No, so there needs to be overwhelming agreement. Surely it could at least be said that even if it fails, it is easier for someone who later comes up with a similar idea to find past efforts if the RFC is drafted and the results of the voting are there. However, the July 19 Feature Freeze for 8.2 is approaching! So I'll try to write an RFC on this proposal later for 8.3. For now, I will look at the interpreter code and see if I can come up with another proposal and its implementation that is a little less controversial (like constants on traits) until the 8.2 effective deadlines. My ability to write English is very limited, so probably I cannot proceed with multiple proposals in parallel. Thanks! -- Shinji Igarashi 2022=E5=B9=B46=E6=9C=888=E6=97=A5(=E6=B0=B4) 0:27 Robert Landers : > > On Mon, Jun 6, 2022 at 6:47 PM shinji igarashi > wrote: > > > > Hello! > > > > I asked for opinions on reddit also. > > https://www.reddit.com/r/PHP/comments/v5le6h/adding_new_closing_tag_for= _keeping_trailing/ > > > > Popularity on reddit and acceptance by people with voting rights on > > internals can be different, but it seems that, at least in its current > > form, this proposal would have a hard time winning the vote. > > > > Until I can come up with a stronger persuasion or a nicer way of > > doing this, I don't feel it has a chance to win, so I'm withdrawing > > from this proposal for now and going to work on something else. > > > > Thanks for taking a look! > > > > -- > > Shinji Igarashi > > > > 2022=E5=B9=B46=E6=9C=885=E6=97=A5(=E6=97=A5) 17:23 shinji igarashi : > > > > > > Hello everyone, > > > > > > I'd like to propose adding a new closing tag `=3D?>` to the language. > > > > > > PHP currently removes the newline character immediately following > > > the closing tag `?>`. > > > > > > With the new closing tag `=3D?>`, the code should look like this: > > > > > > ``` > > > - > > > - > > > - > > > ``` > > > > > > and the results it produces would be: > > > > > > ``` > > > - 1 > > > - 2 > > > - 3 > > > ``` > > > > > > instead of the following: > > > > > > ``` > > > - 1- 2- 3 > > > ``` > > > > > > This addition requires only a one-line modification to the lexer and > > > doesn't break BC. The proposed patch is here. > > > https://github.com/php/php-src/pull/8708 > > > > > > Before writing an RFC, I would like to hear your input on whether > > > it's worth tackling. > > > > > > Thanks! > > > > > > -- > > > Shinji Igarashi > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: https://www.php.net/unsub.php > > > > FWIW, I think it makes a lot of sense, having used golang's template > language (not everyone is generating HTML with PHP). I think you may > just be dealing with a vocal minority and it would be worth putting to > an actual vote. Even if it fails, we'll learn something the next time > someone wants to change something like this.