Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120230 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 71868 invoked from network); 10 May 2023 22:28:46 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 May 2023 22:28:46 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C4145180503 for ; Wed, 10 May 2023 15:28:45 -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.5 required=5.0 tests=BAYES_05,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_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-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) (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 ; Wed, 10 May 2023 15:28:45 -0700 (PDT) Received: by mail-oi1-f169.google.com with SMTP id 5614622812f47-3940f546923so1582846b6e.2 for ; Wed, 10 May 2023 15:28:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683757724; x=1686349724; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6eizsRsMZP6Q563Ltz3gHLFVpCb87VQ6l5LnQnfYugs=; b=PEdVHvmCabMfFec8f+lO3AR5Cl1IXW6+gdxJBSRsh9HNkIHSrOv20maU4W6yMlTasN 3JE3I1CWjVzTt9v6TAA7qJ+SzJxspdA4jwlen6fWVVGK574Rt6PkCQ6bDG/PUopmjZfc NPDQAnnH4QtXHne9/8rjTWtoFX8oVZYRM452pRD6uB8nsw9u2nrHsUZLbiqEos8YTSLb EX8EqUkjLD+w1/HEBfB0AgmM4rdssZqsvv7KrW0eX4w2vKF0SlUP40Pag7OyAm7NfXs1 yr4rwm0+4cso5bcf24FkJY4SOyq+L0cGsGMWwDzzi15iw0OGxZ8j3vwd1ziQjBqrez0z +s8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683757724; x=1686349724; 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=6eizsRsMZP6Q563Ltz3gHLFVpCb87VQ6l5LnQnfYugs=; b=BflukG1hdDjv+3na1qE84gFVfUB1ovpuTy5RT/FDGczVno/mAPOTScHyxfeELvUb9L M9YUZ+3tEJMgYeuZh96dwkYydr/r64P8i3+ohYdj3ly7r/yNcmwKXSCkCtQkLXgqiOla sK4HT+oK4gT8P+/81uDCrywjMZhbiSpdjsFjjOJJaMmLu9p+9QYRqYafNfqgKbm6JirN 831E+Op2hF5fYbLVeP5U3eJgfD9iwr886FbExQqGry0Bg67SO8RuqfAn0oqMQJfaZRqs WXW/35VNAlgYBCD5D66eEpozvq8dPlXJJW8sF30/NJ0kjxDEQXSHERe60OEbOXB/Usj5 5/jw== X-Gm-Message-State: AC+VfDw1uHqEnQOaZKs7mXwMaCoWQwoCzxXbnIXsf2PLIa42LXZNXwh3 QZtL+hsGWjL4ErKYKR6UM/Ap2ZlymRc1+91Oqco6OpBChcvjqT6b X-Google-Smtp-Source: ACHHUZ4IQsdqZUa5HOtrWUN+PzVopuyuRtnee/+K9Bp16q7tbWSwJx6RdbGFBeITapsQtRb+jYADocWuIsqY9t9BLDc= X-Received: by 2002:a05:6808:142:b0:38e:1c35:44c3 with SMTP id h2-20020a056808014200b0038e1c3544c3mr3767467oie.44.1683757724483; Wed, 10 May 2023 15:28:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 11 May 2023 00:28:33 +0200 Message-ID: To: Derick Rethans Cc: PHP Internals List Content-Type: multipart/alternative; boundary="0000000000000e43d205fb5e65fd" Subject: Re: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --0000000000000e43d205fb5e65fd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Derick and Tim, Derick, I incorporated most of your suggestions into the RFC with the sole exception of the argument names ($start/$finish,$begi/$end): it would feel odd if these parameters and their related properties were called differently: https://www.php.net/manual/en/class.dateperiod.php#dateperiod.props.start Actually, when we renamed the majority of parameters together with Nikita, this was one of few rules that we had: parameters should be called the same way as the property they initialize. > Please no consecutive uppercase letters in the function name. I find > createFromIso8601 (or createFromIso8601String if find the 'String' > suffix useful) much more readable than createFromISO8601String. > Uppercase acronyms are especially bad if followed by another ucfirst > word, because the word boundary is not immediately visible there. Not > the case here (it's digits), but still bad. Yes, generally, I wholeheartedly agree, but unfortunately I still "had to" go with Derick's suggestion of using consecutive uppercase letters because there is already a DateTime::setISODate() method with the same casing and I want to follow the established naming convention of ext/date. Personally, I like the "String" suffix, probably it makes the name better, but since I don't really care about this problem too much, I'd leave it for Derick to decide about it. M=C3=A1t=C3=A9 --0000000000000e43d205fb5e65fd--