Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119320 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 74318 invoked from network); 18 Jan 2023 16:10:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Jan 2023 16:10:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DE388180551 for ; Wed, 18 Jan 2023 08:10:28 -0800 (PST) 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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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, 18 Jan 2023 08:10:28 -0800 (PST) Received: by mail-wr1-f46.google.com with SMTP id h16so34436746wrz.12 for ; Wed, 18 Jan 2023 08:10:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craigfrancis.co.uk; s=default; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=o2+U3ApEmG7xsOADXM5eqOsWZcDW88rAab5n/Ru3JOY=; b=eO8ZwrecLD1v/d5U4+ukI1JD35dwqsnQ+eqESj+GniBSwb5juIiyUZXbxQzWgvX+m2 24McuqRFX5VUaGy6eQJ19OqiI4kgRPsXTyQ4slPuXO/PWrmM/LeS1zx7edQU1OaJOM9O 28HW9YLc//rFhb59cPXDk6GAG4pBsrsK3xpMM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o2+U3ApEmG7xsOADXM5eqOsWZcDW88rAab5n/Ru3JOY=; b=qjoTPFS76FU1SFSONWVLHUnAKZjoGR2s8/5h0XenuqsCy0QGw+SF5XWdyWB40NeGUt vAjogyzMLCph+oQsXpW4650Ic5pawb9aUpQZpTAvok9x9i1QRMKvP2h99MNUSBdObcKZ uOmguUAnBNm+4MSrxrlonMBPWCV4NELyziUYKgReaQnzukpamaeA6MSkmL74/8lDCoZC 1AnoTmglmrucJqB0a0nQiE6lURgrvw2xHhK0LL0yPsyNizgImnIFhc7ZsLhip7GhwFCE F7MRABN61vNxFsTxLivYCiNYFMEdebP4P+0AXIfMAqYxQVFUw33J04d2qyClwG6Ti3bp mBXA== X-Gm-Message-State: AFqh2kq2Z6LHF84F1xPQTrR8Z+Roclu/7e5IUQmDAX3tod57JlaWJHLq HFbf1NoFv8pI4xg4ZEQcqzuTX5bF9laNZ2RSios= X-Google-Smtp-Source: AMrXdXuHltDR9fAU7Zk3UNRN5FTjyXiJRsZyWds00ockK0HYdneJNk/dBk1Nu3zYQKREO4GqgGAL+Q== X-Received: by 2002:a05:6000:1369:b0:242:5ae0:5b41 with SMTP id q9-20020a056000136900b002425ae05b41mr6925977wrz.33.1674058227210; Wed, 18 Jan 2023 08:10:27 -0800 (PST) Received: from smtpclient.apple ([92.234.79.97]) by smtp.gmail.com with ESMTPSA id i10-20020adff30a000000b0024228b0b932sm38184973wro.27.2023.01.18.08.10.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jan 2023 08:10:26 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) In-Reply-To: Date: Wed, 18 Jan 2023 16:10:25 +0000 Cc: mark@demon-angel.eu, internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <321B3A37-AF47-410D-9D10-096F02C635A8@craigfrancis.co.uk> References: <5FC8DBAF-8D78-4E94-A3B0-3BDED3A3E53C@craigfrancis.co.uk> <789af205-4582-66a9-694a-10e18b8b9f56@demon-angel.eu> To: "G. P. B." X-Mailer: Apple Mail (2.3696.120.41.1.1) Subject: Re: [PHP-DEV] [RFC] Path to Saner Increment/Decrement operators From: craig@craigfrancis.co.uk (Craig Francis) On 18 Jan 2023, at 12:22, G. P. B. wrote: > [...] > I appreciate being shown concrete cases about the useful ness of this = operation. > The reason I didn't go with adding support for decrementing = alphanumeric > strings is that it was unanimously rejected. > However, if Rowan's suggestion of adding > string_increment()/string_decrement() with more rigorous behaviour = (that we > can flesh out together) would be part of this proposal, would you be = more > inclined to accept deprecating ++ from performing this feature? Hi George, I don't have a vote at the moment (I think I need one more RFC to = pass)... but you might be able to convince me, I just like to know that = breakages are really worth it, because my biggest issue is trying to get = developers to upgrade their PHP installs (a lot are still on 7.4). I agree that some of the incrementing behaviour can be a bit weird, and = I would be happy to see those be deprecated/removed; but I worry that = the A, B, ..., Z, AA, AB, etc is something that works well today, and is = likely to be tricky to find/replace with a new function in all existing = code. At the moment I'd prefer Option 2 or 3, with the focus being on "tiding = up the behaviour of the alphanumeric string to make it stricter and less = error-prone." Craig