Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120523 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 86982 invoked from network); 4 Jun 2023 13:42:51 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Jun 2023 13:42:51 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2C3611804F8 for ; Sun, 4 Jun 2023 06:42:51 -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,HTML_MESSAGE, 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-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 ; Sun, 4 Jun 2023 06:42:50 -0700 (PDT) Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-3f6d38a140bso27359745e9.1 for ; Sun, 04 Jun 2023 06:42:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685886169; x=1688478169; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=4xc1z4tCSfeqXTvPCKk82qUDkmOHnJvf4bGQIqJEmBw=; b=rezSGgonmSCxaSWRyaIxog1KsdAr4/l6O1pY5AO2ISAsTfG4EqZPEFNNb1qCLjTg5D JiGVU8V5rSGWUCOLnH2rgE4SMKl6WLLYrBUFa5fAJn1kFc1QLb6zatmEO6zL5GFkZtG4 GRfDdm0co0AGlsjq4jwhv90YOl+TGFkiVEAdNdgFj1iJGzupnKbF5QgT5jSN2Ae8IGFN fCNPAaF8K8CoOPp6m++WRTafrS5wYpe74cIRc211h92eQtTXVwy3cTZ2g95W5N3Hpi6B ngFSoXHVZolPRTaJVlVHnuXCRJpvOyOVcxaDm6LVSN+y0LQGWmp8SoBehQ9AQBtfv2MJ ClZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685886169; x=1688478169; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=4xc1z4tCSfeqXTvPCKk82qUDkmOHnJvf4bGQIqJEmBw=; b=imTD7tjQgvtJgQv0uM47FvbjzzEfAV6gcCJOjDbiKvh7a0y/qjP20JSr/pe8iqPnnK +qxrhRnsIanc0LYchI4Z/AQMyEZvYd13S7dk0HQT5PaPgbPoYoOvCg4Kf9CAV7/Z+XFj sdXRdMfSajvwhuPSl8RKMFE6fK2cc9kQ7wvrMmPkRnpRRl3SvQEkaUVspFBlkb5UkQ2h rWsZGry6ylQ41DCsZKNcAaicAtc+WKCcbkfQERNUnWCF41bniicjWuhuY67Ts9CNxvko Xm5K//1N6PSnpw6c7qz+QZoZ78xLZkWy+dyZB1S3FrFks/8c3w4UL8D8Y5Qhr1xvYxTS jTiQ== X-Gm-Message-State: AC+VfDyy5I1IXNlmPnXnZw4E7ZqsHwa0ZqPidcEXbYM04oFJCqisUUZe stmScu8K9rYo4DcVGRyAlPq4xfNsOoE= X-Google-Smtp-Source: ACHHUZ6ba+5JUC4Bs0l8kMm9ilyi3MXrKN/P1+pIVVco7qzsdHhtl/WMLnLykYyvUgGSMaV+4deMog== X-Received: by 2002:a7b:ca45:0:b0:3f5:e29:bcde with SMTP id m5-20020a7bca45000000b003f50e29bcdemr5825042wml.17.1685886169125; Sun, 04 Jun 2023 06:42:49 -0700 (PDT) Received: from [127.0.0.1] (cpc83311-brig21-2-0-cust191.3-3.cable.virginm.net. [86.20.40.192]) by smtp.gmail.com with ESMTPSA id j6-20020a5d6186000000b002ffbf2213d4sm7053184wru.75.2023.06.04.06.42.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 04 Jun 2023 06:42:48 -0700 (PDT) Date: Sun, 04 Jun 2023 14:42:50 +0100 To: internals@lists.php.net User-Agent: K-9 Mail for Android In-Reply-To: References: <5798AD17-3FA6-48E5-83E9-B5773BE94598@gmail.com> <71F586BF-E5AD-4FD2-B680-6E0EDCB4733D@gmail.com> Message-ID: <3CD41956-B828-4EDD-9EB0-44FFF1DDBB73@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----CX9GNIKMX06L8OG8P8SZSXYQY5UBUO Content-Transfer-Encoding: 7bit Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_=5BRFC=5D_=5BDiscussion=5D_Deprec?= =?US-ASCII?Q?ate_functions_with_overloaded_signatures?= From: rowan.collins@gmail.com (Rowan Tommins) ------CX9GNIKMX06L8OG8P8SZSXYQY5UBUO Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2 June 2023 14:21:49 BST, "M=C3=A1t=C3=A9 Kocsis" wrote: >I hope that I don't sound elitist, but codebases not using static >analysis=2E=2E=2E are kind of hopeless=2E=2E=2E=20 Then I guess we should just pack up and go home, because right now PHP doe= sn't even have an official static analyser, let alone a mandatory one; and = the evolution of Hack shows just how much the language would need to change= for such a tool to guarantee full coverage=2E The needs of new users being introduced to best practices are different fr= om those maintaining and modernising existing codebases=2E Sometimes, they'= re in direct opposition, but I think we have a duty to try to support both = where we can=2E > The purpose is to have the "correct" return type=2E Is it worth it? Well= , it home > depends=2E=2E=2E For me, what's important is that PHP becomes a more and > more predictable and accessible language, and I care less about minimizi= ng > backward compatibility breaks=2E I think Claude is taking the same premise, and reaching a different concl= usion: returning true is consistent with the other methods on the class, an= d that consistency makes it more predictable and more accessible=2E=20 Regards, --=20 Rowan Tommins [IMSoP] ------CX9GNIKMX06L8OG8P8SZSXYQY5UBUO--