Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119314 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 64932 invoked from network); 18 Jan 2023 15:32:30 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Jan 2023 15:32:30 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E75C4180088 for ; Wed, 18 Jan 2023 07:32:29 -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=-1.1 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_NEUTRAL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS30827 82.113.144.0/20 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Wed, 18 Jan 2023 07:32:29 -0800 (PST) Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id D337410C3A9; Wed, 18 Jan 2023 15:32:28 +0000 (GMT) Date: Wed, 18 Jan 2023 15:32:28 +0000 (GMT) X-X-Sender: derick@singlemalt.home.derickrethans.nl To: "G. P. B." cc: PHP internals In-Reply-To: Message-ID: References: User-Agent: Alpine 2.23 (DEB 453 2020-06-18) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [PHP-DEV] [RFC] Path to Saner Increment/Decrement operators From: derick@php.net (Derick Rethans) On Tue, 17 Jan 2023, G. P. B. wrote: > I would like to start the discussion on the Path to Saner > Increment/Decrement operators RFC: > https://wiki.php.net/rfc/saner-inc-dec-operators > > The goal of this RFC is to reduce language complexity by making $v++ > behave like $v += 1 and $v-- behave like $v -= 1; If that is the goal, then I would agree with this RFC. However, changing the PERL string increment feature does not IMO fit into that goal, and it also a useful *feature*. On that base I would vote against this. And I suspect many others would as well. Is there a way to avoid this single useful feature from being deprecated, while to good parts of this RFC stay? I am also unsure as how much actual breakage this would cause, and before this gets up to a vote, I would like to see how bad (or not) this would affect already existing code bases. cheers, Derick