Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120513 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 36307 invoked from network); 2 Jun 2023 13:22:03 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Jun 2023 13:22:03 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id ACEC9180089 for ; Fri, 2 Jun 2023 06:22:02 -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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,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-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) (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 ; Fri, 2 Jun 2023 06:22:02 -0700 (PDT) Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-1a2b01a40a5so115667fac.0 for ; Fri, 02 Jun 2023 06:22:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685712121; x=1688304121; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=yrNj4sdIBVV9bbGPaT3GKPYQD0j0gVbfKbi9K0f9GCI=; b=Rs2ReBnAf3cnAJm33XEeh0eFrmT9DgaNNdVBHqXUcgEjZ+qCm1Nst486eH/Ie89mc8 Pl6lbg9IB4dUNaxHr6Gv/NKmlKRhV8hmm6Qza8r9EQZqmj0oObG6zQzC9tw/MzgE7lwm ItdsbjLcmWL59CE2GjcfksOhDHyySb9zixSt9fGWbt2/GHbr1OKpn05x6UETUrDCWeru 82bbmaR7MlI2nTtjGFG+TCNF6YA72Sgy48NuyMCXFhJBJEm7QkmWMdtUdXSKq2l19uHp iEt3PT1IEDOZ/RlGnjE9j5IZpTPbbvJJbg5QGMhRThElcLbltcjXT+CWsj6RARDeFQj1 WtqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685712121; x=1688304121; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yrNj4sdIBVV9bbGPaT3GKPYQD0j0gVbfKbi9K0f9GCI=; b=ObVz7VlH4GrtrGQALlQCoAeGlN3qZMwDiPVZxpLCY74RlGNm+P+RlrSIpgPpCfCxMa r5aSFQGhxhMpuYoTBPelR+i/wmvHnPgMXdbSZk0VtApaI9uRJ42eP1DldFEPve6bUeAN O91apWuIzK0IdgFnDNqSy+JllqzXNkiBrk67GLbRZB7JbNHJLhnDESpPO0q8m6Q08dwx kq2kBMdiZS43hOK5qfwzGD5C1pcmkLCHS802ujbzzpAnnGR/e77tRfOg03Kb1ryMB3Fm +IiSYbjOwvkWRmiEUpfIEyinHyrxlB7fS22GhHxInqSuMu2IApw8nnzUNzZWCKHN23Q2 cC4w== X-Gm-Message-State: AC+VfDxuleLB/mryfRkLpJ2ZQznzh+9fxMCWDSoAC834SCygrekQ5z4b dI1xikPUpWAqBPDezwh/FDXqRAkPT4K0luJc6gA= X-Google-Smtp-Source: ACHHUZ4Rr00qLb4ACjAaZIuCdiA4ESAfBrLfbPcy9Pl1MokQkBjut9YiVmztwZjALhTGhlwojHqhoV2vu0RhSSeQhxA= X-Received: by 2002:a05:6870:c810:b0:1a0:2fd5:116a with SMTP id ee16-20020a056870c81000b001a02fd5116amr1430577oab.16.1685712121371; Fri, 02 Jun 2023 06:22:01 -0700 (PDT) MIME-Version: 1.0 References: <5798AD17-3FA6-48E5-83E9-B5773BE94598@gmail.com> <71F586BF-E5AD-4FD2-B680-6E0EDCB4733D@gmail.com> In-Reply-To: <71F586BF-E5AD-4FD2-B680-6E0EDCB4733D@gmail.com> Date: Fri, 2 Jun 2023 15:21:49 +0200 Message-ID: To: Claude Pache Cc: PHP Internals List Content-Type: multipart/alternative; boundary="00000000000030201405fd25705d" Subject: Re: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --00000000000030201405fd25705d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Claude, The very risk is that the programmer must be aware that the return > convention has changed. Recall that not everyone run static analysers, > especially for such a trivial migration, and that not every code is > statically analysable (e.g.. `$foo->$bar()`). > I hope that I don't sound elitist, but codebases not using static analysis... are kind of hopeless... That is, in my opinion, there's no other option to run a larger PHP project successfully than to either use static analysis or to have programmers who don't commit any mistakes. For the rest of the less valuable projects, the cost of messing up with the return value check is not much. What is the purpose of changing the return convention of IntlCalendar > methods, and is it worth? > The purpose is to have the "correct" return type. Is it worth it? Well, it depends... For me, what's important is that PHP becomes a more and more predictable and accessible language, and I care less about minimizing backward compatibility breaks. The introduction of the "true" type was useful, since we now have more correct type information, but adding new functions with this return type would be unfortunate, as many people (especially the ones coming from other languages) would be puzzled about the meaning of the "true" type more than if the return type was "void". I'm pretty sure that George - the author of the true type - agrees that the main purpose of this type is to eliminate its declarations from internal functions and methods. Regards, M=C3=A1t=C3=A9 --00000000000030201405fd25705d--