Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119437 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 18103 invoked from network); 1 Feb 2023 06:20:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Feb 2023 06:20:22 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3B6A21804F7 for ; Tue, 31 Jan 2023 22:20:21 -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=-0.9 required=5.0 tests=BAYES_20,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 149.210.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from outbound1.mail.transip.nl (outbound1.mail.transip.nl [149.210.149.72]) (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 ; Tue, 31 Jan 2023 22:20:20 -0800 (PST) Received: from submission6.mail.transip.nl (unknown [10.103.8.157]) by outbound1.mail.transip.nl (Postfix) with ESMTP id 4P6Bc30TqWzRjFL for ; Wed, 1 Feb 2023 07:20:19 +0100 (CET) Received: from [IPV6:2a02:a450:3eae:1:6ce5:3770:5850:e60d] (2a02-a450-3eae-1-6ce5-3770-5850-e60d.fixed6.kpn.net [IPv6:2a02:a450:3eae:1:6ce5:3770:5850:e60d]) by submission6.mail.transip.nl (Postfix) with ESMTPA id 4P6Bby60dDz12LHn for ; Wed, 1 Feb 2023 07:20:14 +0100 (CET) Message-ID: Date: Wed, 1 Feb 2023 07:20:16 +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> <9d225219-4e31-b362-52a9-9a298a0a55ef@telia.com> <768de46c-9ff2-eee2-24ab-e78e27ad167c@demon-angel.eu> <828f1ec6-e8ff-01b2-dc0e-a6cf1dd16eb2@demon-angel.eu> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: ClueGetter at submission6.mail.transip.nl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=transip-a; d=demon-angel.eu; t=1675232414; h=from:subject:to: references:in-reply-to:date:mime-version:content-type; bh=po+PyH+Dq/sG1a7DQt5gjKcvHcc7Ldh/GmNffdxZzOE=; b=GQfIEwpXn8+vNmoFpTA7YiDYaP997zzRI/qfUA6PsbPf1KAWC01t3JZizsZNSiVn657Ki4 Fph2q3pVupF8AXm0Yr1qcrXgJmd530I9Mc5QvrlnoVHJo+v7/s132eseFBpNt14YLT51hP 4ND055xV6xzuKj8JK+lgT6MAgrMZnIp7/Nv7+2xt5CwumA/gBRqotFaNzQKoGlx4GVnW1G uOj62ypDyvFZIdmX3gIRLoDKsryROSFVlxDQFyccj4QfW39wWBprICHOctQ77FHDvZJttd 7q7zJ2o4Wus6wAOBqBY+Wf6voIumab8RZ0NB7lMvjc8JsurWuYUZMZUma36d0w== 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 23/01/2023 14:06, G. P. B. wrote: > However, the whole point of this RFC is to*remove* cognitive burden for > developers, so they don't even need to be aware of this "feature" and not > get surprised when it kicks in. > Moreover, by your logic, you wouldn't care if we removed support for > alphanumeric strings and only let the PERL increment kick in for purely > alphabetical. > While convenient for you, someone might actually use this feature on > alphanumeric strings, and we're back to "why is my use case being removed > while that other just as weird one remains". I make no judgement on alphanumeric strings, other than I can't see any use case for it myself, so I won't allow my objection be considered hypocritical; and your definition of my use case as "weird" is highly judgemental. Bijective numeration using the letters of the alphabet has a long and ancient tradition, pre-dating our modern numeric Hindu-Arabic system using base 10 for place/value notation by many centuries. The Abjadi system used the 28 letters of the Arabic alphabet; similarly the ancient Greeks and Hebrews, the Armenians; by Russia until the early 18th Century (each culture using their own alphabet). It's ironic that the Romans used a very different system, even though our modern western alphabet is based on the Roman alphabet. These civilisations didn't consider their alphabetic numeral system "weird". How many of the irregularities and idiosyncracies of alphanumeric strings could be resolved by not trying to cast them as a numeric value before increment/decrement; but by treating them consistently as strings? It would resolve the discrepancy with "5d9"; although not with "0xf9". -- Mark Baker