Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114942 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 68481 invoked from network); 18 Jun 2021 09:48:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Jun 2021 09:48:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3BBCF1804A8 for ; Fri, 18 Jun 2021 03:05:18 -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.5 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, SPF_HELO_NONE,SPF_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from processus.org (ns366368.ip-94-23-14.eu [94.23.14.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 18 Jun 2021 03:05:17 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by processus.org (Postfix) with ESMTPA id D8A5B5101324 for ; Fri, 18 Jun 2021 10:05:14 +0000 (UTC) To: internals@lists.php.net References: <2768d3ca-7c4f-77f3-d9f5-ff09b932fc80@processus.org> Message-ID: <9969f24f-fc4f-b1a8-f4af-7610ebb45e2b@processus.org> Date: Fri, 18 Jun 2021 12:05:14 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Authentication-Results: processus.org; auth=pass smtp.auth=pierre-php@processus.org smtp.mailfrom=pierre-php@processus.org X-Spamd-Bar: / Subject: Re: [PHP-DEV] Re: [RFC] is_literal From: pierre-php@processus.org (Pierre) Le 18/06/2021 à 11:41, Craig Francis a écrit : > Hi Pierre, > > On Monday we had the discussion about types: > > https://externals.io/message/114835#114846 > > The RFCs Future Scope was updated to note the suggestion from someniatko > and Matthew about how this could be a type in the future (Joe has also > shown an interest); where it was agreed that it should be added later. Thanks for pointing out this discussion, I must have missed it. > The discussions I’ve had about this flag have been to ensure it covers all > future use cases, including a dedicated type, where the function is an easy > way to expose this flag to libraries today, so they can handle developer > mistakes gracefully (rather than causing type errors), with types needing > to have their own future/separate discussion. > > The type will still use this flag, so it will match the same definition in > the RFC - strings defined by the programmer, and we will include integers > after the feedback from Matthew (integers have always been considered, the > only reason they were originally excluded was because I tried to keep the > definition as small as possible, Matthew noted how they would help > adoption, and no one can find a single issue with allowing them). Makes sense. In many cases, I didn't want to bypass/override the RFC to something else, but just point out that the discussion about future types names could give hint about the function name itself. Regards, -- Pierre