Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120086 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 29850 invoked from network); 20 Apr 2023 19:48:53 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Apr 2023 19:48:53 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E23BD180505 for ; Thu, 20 Apr 2023 12:48:52 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS19151 66.111.4.0/24 X-Spam-Virus: No X-Envelope-From: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 ; Thu, 20 Apr 2023 12:48:52 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 42AFA5C00BE for ; Thu, 20 Apr 2023 15:48:51 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute4.internal (MEProxy); Thu, 20 Apr 2023 15:48:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1682020131; x=1682106531; bh=oFEM128bIk 8I5+7zcJ6SQopKtjV8fOEfcB0udZIQ2kA=; b=ibkNKGTn55BecG0CCyYDQ92GBS uSqxR6ro108F+d1SdP3sgc2u01qEUvztpi/YQqVljAHCzrKjlc14ltV7pqsiR8uF XM/Vf7YUJGAxaQLkCF1sm9MnJPzqAg1YiFvZlhz8NhlqBM/nklISziv3yMSY2GWB r0/cbZfTFNRs/1s+u9gEG5oAmEIvyEFnfKhHDji6KSIS1Q5P0NtmYWe/NsUMtFoh Zi+Za0BwaOo5DzYA53SUzBLYVWBSQ3mD2ycPVZsOTgINNQRh18Imm4LX4k3K++91 rVFepf1iyOrC03QM10DWqZHy1ThdU1N36KaQWaj2EnFAc7P/431SgWizPQ4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1682020131; x= 1682106531; bh=oFEM128bIk8I5+7zcJ6SQopKtjV8fOEfcB0udZIQ2kA=; b=d QLKRsAblZFJEwhfIF/myEnDhyQGj9eNr+O7FXXV8+HnQPgtg02OmeDIC7UvuC6Dk cC9Pu1hmu8wDb4ChNzIbJYaTMzhwnLnaA6N7kCJd+Va8w2vP17RJvdeE/FDpGsp4 TKnx87fF+VNgnTy3RCZDpBNnAIkWAVAo33sdhRsB90yZsY+lpET9CjdhPouyKTPV 5F8M1D6OGAiXkXdB6S3E/CyIQAugNvtbhbmYgvfK5kmR/efsHMdayUKQ6XBNvKPw Sj7olVL13ukMl5DHFaq8G5+kubGtV5R5Ao92+a4d/DiO+JhuNuraF7XKExnvrNLE 1PhzJjSWrA/Sqf1fm+dcg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfedtvddgudegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfn rghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrd gtohhmqeenucggtffrrghtthgvrhhnpeffffffjeffudfggeevvdeitdetvdfgjefffeff jeelfeejteevheeghffhvdfgleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D42E51700089; Thu, 20 Apr 2023 15:48:50 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-372-g43825cb665-fm-20230411.003-g43825cb6 Mime-Version: 1.0 Message-ID: In-Reply-To: References: <6b5de716-d769-4f0b-b3e6-5a5a211f035a@app.fastmail.com> Date: Thu, 20 Apr 2023 19:48:29 +0000 To: "php internals" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [Discussion] Callable types via Interfaces From: larry@garfieldtech.com ("Larry Garfield") On Thu, Apr 20, 2023, at 7:10 PM, Deleu wrote: > On Thu, Apr 20, 2023 at 2:25=E2=80=AFPM Larry Garfield > wrote: > >> But that runs quickly into the problem of verbosity, reusability, and= type >> aliases, and the discussion usually dies there. >> > > Just out of curiosity, was there ever a discussion thread dedicated for > Type aliases? I couldn't find it on externals.io and I was curious to= know > what are the challenges there since a lot of time and effort seem to h= ave > been put on trying to sidestep it. Not that I recall, on list. There has been discussion on and off in var= ious chat rooms over the last 3-ish years. The general pattern seems to= be "that would be cool and useful! But how do we define them, and how = does autoloading work for something that's a one liner?" And since no o= ne has a good answer for that, it kinda dies there. I wouldn't expect a formal discussion thread on it until someone has a s= olid proposal that addresses those questions that they want to run up th= e flag pole. (Not that I think that's a good process, but that's how th= ings work right now, mostly.) --Larry Garfield