Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125224 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 DB8491A00BD for ; Sun, 25 Aug 2024 16:28:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724603402; bh=ERehY54q+R9PuKsZHOKrbpqMQKccnY+BAZynGBuN4P8=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=SfK7F7l5HD7YVvs8gWzV43PptkOPaRf9b/9SfAzzMLX7ZiH/nmMdD+f4KiM++Uncq LQiGwnqKoSwiJ2dplEYEp2DjiBuAQ4sAErxk1T/faGJ8ejTtdhHEiwWHrKDMvwW5Pw nVmj0w9KfNjm54NsClplM1oHB5JkjGrgtXSVY5jaQWnwbT1r3+O3WjZudYNehKwDKE 5kU8RhKe4sxGc5lpkhOIIXPDZcLHbuTSgct+1ZB1q+B4afc1rW8rEMa7nFO+tHsgN/ ja0XDnN5xwBp6tcrLlI9JHU3OaiNe+z5C7VIWc8VuJvTuSZXxhAAvwzO1tfaKe8g5l KyQCqtghepH7g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3ACE51804B3 for ; Sun, 25 Aug 2024 16:30:01 +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=4.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,RCVD_IN_SBL_CSS,SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) (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 ; Sun, 25 Aug 2024 16:29:58 +0000 (UTC) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-6b99988b6ceso34318767b3.0 for ; Sun, 25 Aug 2024 09:28:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coggenterprises-com.20230601.gappssmtp.com; s=20230601; t=1724603286; x=1725208086; darn=lists.php.net; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=ERehY54q+R9PuKsZHOKrbpqMQKccnY+BAZynGBuN4P8=; b=o/U8n7qRskmVqDS6YqowUf1iSENvHlc62evzWNZ3vDpUzAF7llZBrKXZTLS/xGZ/y6 ntorokyGIWA602elswbnIUAybhkXr1JlATBgW5JAp2D1AYPEtAwYpwM5LPj1yd87rMPy /psxujQFQpUGy9WmnRCo0lXadrZJQJ3nlUVYUblHvvtIFpPDX8YwIXVM0qbNTtjBME9u hC8u+vYUFGfS10Cl1xcNqCTsKomh5iZts9NmeevopGwW9V1MdEDZ2RDYTljdU5DM9nFa lfehHJLJ0ffrtLtRpdFO7aHW8Z80vXPDKNJlakxXh6O1JqQEPLE3V9EFUeeCjBbmE+64 5ypQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724603286; x=1725208086; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ERehY54q+R9PuKsZHOKrbpqMQKccnY+BAZynGBuN4P8=; b=nZ9PoAmwAcFFtzSCcZAn0pduMpw9GkvAPHKzCbsKs20RI+Nu2kgzw5iVbfhg/2FmXn enVSQmsk6rS9yi99CVzCODbtru6v/ozIoZsTfkDND3Ulq0pJ1v1mireKptsvHvDZm0LD swsg6kw+f5hx+TemPgnsec7h5431tB4C5i6MjQGOUGkv8eytQUXVbLg8ugdj9MtWnaqF m3kculHsMsj9X7pqDgG3AjNI6ORtN/sT2+hnvp6S+0H8gUOLdPmOVg/6ox+FdZmqQWgJ jseVEc3fDUINt3u4ODcO0PWSE+h+y7pT9sKcI0U5h+2+fJEH86esf64dmGijFSshAEru wJTw== X-Gm-Message-State: AOJu0YxzOVbK9dJ8TcjS3oPp1c3PZb3PBv80Dc/5hE7PVWw8oOaQ9Z5h lKthNjt5ZYkcj1Z3DAuM98TkGZQ0HrFBvPkm1oC0UcioKXUc8YeayXEcvdu4mWo= X-Google-Smtp-Source: AGHT+IHQxxmIP4D5mUPZ8isiF5356R+SIGGBGYdC0o9vI/b4NXXJatVur/jqc4nq+NbtxcBPqzA6cg== X-Received: by 2002:a05:690c:2889:b0:6ad:feb0:e6c9 with SMTP id 00721157ae682-6c625f1e713mr62773357b3.23.1724603285819; Sun, 25 Aug 2024 09:28:05 -0700 (PDT) Received: from Johns-MacBook-Pro-2.local ([207.213.210.67]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6c399cb541dsm12322437b3.21.2024.08.25.09.28.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Aug 2024 09:28:05 -0700 (PDT) Date: Sun, 25 Aug 2024 12:28:04 -0400 To: =?utf-8?Q?Rowan_Tommins_=5BIMSoP=5D?= Cc: "=?utf-8?Q?internals=40lists.php.net?=" Message-ID: <0CA5BA3A-00BD-4E11-995C-1278EDEF399C@getmailspring.com> In-Reply-To: <9B1A7EFF-1AB3-4DCD-9A14-AF9FD5EE504C@getmailspring.com> References: <9B1A7EFF-1AB3-4DCD-9A14-AF9FD5EE504C@getmailspring.com> Subject: Re: [PHP-DEV] [RFC] Default expression X-Mailer: Mailspring Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="66cb5b94_74b0dc51_11f93" From: john@coggeshall.org (John Coggeshall) --66cb5b94_74b0dc51_11f93 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline > Special-casing the T_DEFAULT grammar would not only bloat the grammar rules but also increase the chance that new expression grammars introduced in future, which could conveniently interoperate with `default`, would be unintentionally excluded by omission. Forgot to add that I don't think the fact doing this properly requires a more complex grammar is a strong argument for doing it "the easy way" of allowing all expressions. It's a special case, and that should be reflected in the grammar. --66cb5b94_74b0dc51_11f93 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Spec= ial-casing the T=5FDE=46AULT grammar would not only bloat the grammar rul= es but also increase the chance that new expression grammars introduced i= n future, which could conveniently interoperate with =60default=60, would= be unintentionally excluded by omission.

<= div>=46orgot to = add that I don't think the fact doing this properly requires a more compl= ex grammar is a strong argument for doing it =22the easy way=22 of allowi= ng all expressions. It's a special case, and that should be reflected in = the grammar.
--66cb5b94_74b0dc51_11f93--