Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117861 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 21931 invoked from network); 6 Jun 2022 21:02:13 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Jun 2022 21:02:13 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 27FB7180211 for ; Mon, 6 Jun 2022 15:47:49 -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=-0.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 ; Mon, 6 Jun 2022 15:47:48 -0700 (PDT) Received: by mail-wr1-f48.google.com with SMTP id x17so21686135wrg.6 for ; Mon, 06 Jun 2022 15:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=vtTCcprTNYxlpriWfKLw1VGrPh5y4+AsQ3v8PvOdlp0=; b=LvWq4cT6fhOdlF79OlatA4+tpgGPVXe9IVivjkei3Amjm6KosnfBOPm5d3BaFywNHr IZzvYtC/0q07qLO0MpXMzGf8zpg3JZqhvcDzPXenCbnm5+xxH1V0piGUQH58BSMqhKSm g6TqeKwFTCnbe720+7U7KNcdsCY5QybOQxzZJY9jU2kkK+aISd7XHXEanT3nPuvZplDy 21W/oPgbUtl0fyCex1drkYsu7rlpKiDQrEjkvsRHyDlFarmXyLI6sTZgw1WdzwT5OwMB 8a1GgPVOT8Z2aH9ewyoXrf13paNOy9kXJ/jSkMW+SMArMniagAyjwQF4zipSFQxhSpPZ guUQ== 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:content-transfer-encoding; bh=vtTCcprTNYxlpriWfKLw1VGrPh5y4+AsQ3v8PvOdlp0=; b=WWzQGFXTVDrt5LSBxb2XAKKGukfsubJg3fupCHi3IiOmRpACMQpmVbWYe2jZeaXpLc GBo/cM59fD1wsZv8txaG8JFwzI9LnoQjG+K6Ec7azXDRYBNpIUZAkjFDxMDrns+d9q1l n9LbwVRXeJXpksoNKm3HQv+RflMvQSZta4Cn0AYgezCC/omMcNMMI7zSbf1T/rCGzxs/ r8poXjp5yVwXdjfVqTBOu43AzmuwpqQ9p+RMT8AJBbee+3JlWnmbY7b47qGLyZyLG0Tj ++tOxkSrCOyespnW6+LhBdYPGo/sR8gbwJu0X82YkXxrDX0nLPO/oBJuSRW0swKOKr2F WgrA== X-Gm-Message-State: AOAM532jSfKEyHA+NM+wRT1bkS3nBvxY76wGNpxsL2eNaCPAIhZasLLQ E9+QLgS+5jugrBfszCl40mMkhGk6fdI38tUSizHp9yMYyLs= X-Google-Smtp-Source: ABdhPJw9RVeLl6rbM9MCoZ9tiYUFKUoXMAc4UahnOX4uBwdN/1V7kGU84D3W55Mjzp7dVhIrkVR+0PkrvLoRwyhKUA8= X-Received: by 2002:a05:6000:1861:b0:216:4019:9ee6 with SMTP id d1-20020a056000186100b0021640199ee6mr14475815wri.172.1654555667152; Mon, 06 Jun 2022 15:47:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 7 Jun 2022 07:47:36 +0900 Message-ID: To: internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: Adding new closing tag =?> for keeping trailing newline From: shinji.igarashi@gmail.com (shinji igarashi) Hello! I asked for opinions on reddit also. https://www.reddit.com/r/PHP/comments/v5le6h/adding_new_closing_tag_for_kee= ping_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