Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119332 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 3285 invoked from network); 18 Jan 2023 19:57:50 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Jan 2023 19:57:50 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A1DE3180539 for ; Wed, 18 Jan 2023 11:57:49 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS20857 136.144.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from outbound3.mail.transip.nl (outbound3.mail.transip.nl [136.144.136.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 18 Jan 2023 11:57:48 -0800 (PST) Received: from submission1.mail.transip.nl (unknown [10.100.4.70]) by outbound3.mail.transip.nl (Postfix) with ESMTP id 4NxxPk5gqCznGGZ for ; Wed, 18 Jan 2023 20:57:46 +0100 (CET) Received: from [IPV6:2a02:a450:3eae:1:3c1a:2c3a:1b1:d24c] (2a02-a450-3eae-1-3c1a-2c3a-1b1-d24c.fixed6.kpn.net [IPv6:2a02:a450:3eae:1:3c1a:2c3a:1b1:d24c]) by submission1.mail.transip.nl (Postfix) with ESMTPA id 4NxxPf4GP5z1nsVx for ; Wed, 18 Jan 2023 20:57:42 +0100 (CET) Message-ID: <2d6d7bde-7223-d479-77c6-70b59c32db37@demon-angel.eu> Date: Wed, 18 Jan 2023 20:57:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: nl To: internals@lists.php.net References: <5FC8DBAF-8D78-4E94-A3B0-3BDED3A3E53C@craigfrancis.co.uk> <789af205-4582-66a9-694a-10e18b8b9f56@demon-angel.eu> <321B3A37-AF47-410D-9D10-096F02C635A8@craigfrancis.co.uk> In-Reply-To: <321B3A37-AF47-410D-9D10-096F02C635A8@craigfrancis.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: ClueGetter at submission1.mail.transip.nl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=transip-a; d=demon-angel.eu; t=1674071862; h=from:subject:to: references:in-reply-to:date:mime-version:content-type; bh=jmxUextvyT8ykRqCqgf/2c41wS6B/X5HaVy51+TVZv0=; b=YSSOXABE17SaotcIzX2rsx1crDt561PKjO+46EQ/1ps2BmZtVrctBfnYW5r+85wchgnetN 5LaF8Ox8bC+ccRqaRGgedCEDNpDyQoGTsn0BIIjDv4wwlfnUPcXKJpuRs1RhE6lpXHL596 i1m2g2WARrtvN3lCXMJSHj8wRVH4OSrBDR9gbE3fptBJa7aRdiI9RyO8Ztl7TnOooZSELn ybPjH0rPTUppifxT+D/LNuisUuw5BtnpAxKzzsoqExwzor3lMJRDaeNwiysO02WyGibS/6 /VqhBf3wZUeJUQQFjDWb1LVVrqZoWkiokSyTM51eIxgI4soW9sD7KU3O80Rx/w== X-Report-Abuse-To: abuse@transip.nl Subject: Re: [PHP-DEV] [RFC] Path to Saner Increment/Decrement operators From: mark@demon-angel.eu (Mark Baker) On 18/01/2023 17:10, Craig Francis wrote: > 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. Replacing the use of an existing operator with a new function call, but only in certain circumstances (for alpha increments but not for numeric increments) would also be a pain; we'd have to examine every instance of ++ use to see what datatype it was being used on (SA tools won't necessarily help with that); and when looping over Excel rows and columns it would seem strange allowing the ++ operator for rows, but having to use a function call for columns when all previous code also used ++. -- Mark Baker