Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117866 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 78557 invoked from network); 7 Jun 2022 13:41:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Jun 2022 13:41:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1A91318037E for ; Tue, 7 Jun 2022 08:27:29 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) (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 ; Tue, 7 Jun 2022 08:27:28 -0700 (PDT) Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-e93bbb54f9so23534663fac.12 for ; Tue, 07 Jun 2022 08:27:28 -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 :cc:content-transfer-encoding; bh=u3/DLkq6uI17wnVnOxss7ok3v7qQ+L5tt0Lcr+Tcse8=; b=auk9ovCQVTDgwNgatra6rYlG8p/3XW+oTK1jwFvFcXNRtuZ3FmG+xqY8x0NFuV/w7k CVF+EYsjZ6j2jRq34Slz/hmN8xpEGRLbe2+vwQOGdcXjHOfqF/1UG8Q58bp1k9LZWBpw KsREB3mwBtqwDWeBw0D2JF32px0tGtZOMJr0sdNCvW2xkXdf25y9u2u+XF8KUyMG4o0o PgXNA4Coj79nw8/zX3eQ/BO8vLIA257eEzviON6Pb17I/NIuI9wtUgrjCBr6+5GWJJ/G Yp9hUTDDGJ1qEQ1A7gu8GtkAILiFL5WnQvadFYGsHz1dUQJDum+RkdVefKQAnGKSDKa0 r8yw== 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=u3/DLkq6uI17wnVnOxss7ok3v7qQ+L5tt0Lcr+Tcse8=; b=I9rkrrgtYlVdIKF37jPE8lfBAE/lxlFh8rbJ1X04rdAMF+R1bpT4tWE0mpTeWVtGpt kk8aUMvQ1n/kYppcqPWfOAL/C9eBdhUrncZeOwKKFXSPtg8BUud8lI6BqOcgGiyn9Mib YlaLBDBlkthL/S5JGrvr4c+27fonw0fGLuymmAUCNYg5qrm8yVdKf/lIGtkNXNdQlNLz 0v1yEuDP+/QQbPTAWFMKkhToMKDRW0/hqFDXxWQpfUey3GfQnil27xF0ylh2rRPCbK2p w+yP3vLBrdFIu35gP7Oek5FpxS2iuAx5Vq3PV24KmR9h4b1UhqDk4UCcxRwbZKecC0aa Eg1A== X-Gm-Message-State: AOAM531OAMiHpITkndWAZaW2AMD1tLFrYV6xLLIKMeV5mUa0n41+viqc 6UArXTVaiiPt4+JXP30P0ECadEIjmkHZGRrdpkw= X-Google-Smtp-Source: ABdhPJzGbH6I2OkdyusovzAMUVJY7bwRxrvom62Lg4MbwebbOKJ5WMyL1ZzTQw3NRjdW2wIC/1eCIk6qT11TCOPcwzw= X-Received: by 2002:a05:6870:5708:b0:e2:8a41:2261 with SMTP id k8-20020a056870570800b000e28a412261mr16803012oap.247.1654615647937; Tue, 07 Jun 2022 08:27:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 7 Jun 2022 11:27:16 -0400 Message-ID: To: shinji igarashi 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: landers.robert@gmail.com (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_k= eeping_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.