Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128141 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 0E43B1A00BC for ; Sun, 20 Jul 2025 09:53:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1753005125; bh=DRrN64Se9pmUHTxTXaTUwHWqORNkzjBW4oiiNMO6Y+M=; h=Date:To:From:Subject:From; b=NiSoNDq0Yq04rhWHo1oI1IjGf/VRD55w/4HvdsmDTruuZfqPhWD5079vi1gUU5vB0 lgSfARNtNzUIJPtiiSuvQ/9ysJYlPCc4XvqhAKfBTwtfCULEWBexO6TZmfFFAgFXq4 zc6mfOqQP56ZWrw+JYqNsMOJVL3VRrKNHVewztUSihshEx+2tDzDaocMcW+XZwTfEg f68ulZl70aZSNgxo709zyaAQM1bbRhd13ETeFnKttWIKIN50YsOpz53dejnRld0ofS yw8ktd6lOQHGG/WI2jcyTyjcT8TaXXwgSGnfVmqV0/WBXLjmwyibD/GkGMqhdxjvTN TI0ci3bxbbENw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E45CA180557 for ; Sun, 20 Jul 2025 09:52:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 20 Jul 2025 09:52:04 +0000 (UTC) Received: by mail-lf1-f67.google.com with SMTP id 2adb3069b0e04-553b6a349ccso4380039e87.0 for ; Sun, 20 Jul 2025 02:53:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753005229; x=1753610029; darn=lists.php.net; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=a2DdXQBgccE7+d9X7hbvs0NmgfjqLctzY/8VLw+gsSo=; b=Wl37c+zoaPax3ZbC4UrVYuqmVwd4C7I6O92fDVruhFa7WaJ8ZP8fTBjaw8M5qrPh9j OUlts2PapjwQjKJZWq8x5rIIrYG6bNHU1u+TolpzOtoD5ZEETxKJxP49TIBW3eoOn4ai YfsvychNgFCveeaDN6IbqGz8xyuieeF1bizgQuAEaY55cYp8CBTo/gC5GXjlcOP+mBUv +jUbcYjqEGJeH/Eu4UkP/1h6jaBeoYtwwPEkLA6OQb35IC1+LUwO7ltWOITI54ZF4zhu wpsmjbWhC0TiyBViGT/V9RydwtyOZu4baj7O/rmndznkueqjIGRfQLbN9jp/ek75mvIB 1MNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753005229; x=1753610029; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=a2DdXQBgccE7+d9X7hbvs0NmgfjqLctzY/8VLw+gsSo=; b=gQRcFv56IdG+p8+q49Ue+CyRuUnrkwhjPMWPoD95O3J6E9y55L7BjieGU5kGysQrKv uirov0ZK+SbcduIKef0Vp56fpGXmKpNE5YA13wrmThvvi55V1BJiIm0EfToz45tRk5uh dzGf1EXGH05a5TcSaMGwaAriEFIF5UF1HgHleWyu9Y5Gucs9PkaCk9HYUuuiqhNKrgbg rkQGCCeZMkRKmItBR/zokkNddHGqAC+dr+gmSO59hlBkXaV+q/1qc1Jsy3QnjBfh9i4b I//jTjPQKtbHGDlaq43C8lULNPbHNHZj2rHytoGG6cOG6T5yuam7PmjLDnR+Ty16rAeB niAw== X-Gm-Message-State: AOJu0Yxdp+FqMjc7qBnN2efu6pr8KndG05/otF8R2KTfD0YM9xxigOJH +b/d7uJdIXOQ17+5OdtXfSgpmqqQUdNaJ3c69eOM8uMzJWRyIj0/IQZOvyeJOIb45Is= X-Gm-Gg: ASbGncv9Vy6fBnnV7d4N1F2/HijWfHT4GtZGd2GL75HRT9TZC8s9WP4TuYJXAH3uq2l yunTR9AccVdOpbcklXzJBM/ElA+a0sjrzCeVV2iDstJpVRxnPhgfq7PjGExUOrdgwo3pzAU6TTn LCYz0ijvRYOoxP4S1KwXIlUCt9Aa3E5H51dXPKzC2g4Us6mDikrdlO3AC9X02BibWhU08CVoIZp 3jW2cCXj9WTYZ7h0axWlWTJxv0KV1PZVeqqjWyuwXZyV8wkwaadbtG5Ssnsiu3oPqRxt8yEmoLU CH0o4Fqm4w6Iahw8aTIXasI5hsXews3ciHKR0X4k9OORJlm8qK9FqQr8kUPqDM9QC8ai/WjXdQ1 gZQNPzdE= X-Google-Smtp-Source: AGHT+IEr79B+voxN6L2fHV7p0ILkwduhoL84gtIdtyarzwhFAb90cPEBtZXc6Mxlji4KOudifz8evA== X-Received: by 2002:a05:6512:ac2:b0:553:2480:2309 with SMTP id 2adb3069b0e04-55a23edceddmr5631403e87.3.1753005228383; Sun, 20 Jul 2025 02:53:48 -0700 (PDT) Received: from [192.168.1.16] ([46.181.226.137]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-55a31da2c8csm1064741e87.184.2025.07.20.02.53.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Jul 2025 02:53:48 -0700 (PDT) Message-ID: <2e8a8375-62ec-4bb2-86ed-7432f389e683@gmail.com> Date: Sun, 20 Jul 2025 16:53:46 +0700 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: ru To: internals@lists.php.net Subject: [PHP-DEV] Proposal. Pipeline assignment operator Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: vadim.dvorovenko@gmail.com (Vadim Dvorovenko) Recently introduced pipeline operator is great, but together with assignment operator it will lead to mixing top-to-bottom and bottom-to-top code reading directions and vertigo. To reduce this problem i'd like to discuss the idea of left to right assignment operator. The draft rfc can be found here https://github.com/vadimonus/php-rfc-pipeline-assignment/blob/main/rfc.md , there is the part, that describes problem. It currently has one question (can we use |> also for assignment?), that would be better to discuss before 8.5 release, to avoid later breaking changes. If someone like the idea, i need wiki rfc creation rights to create rfc. I do not think it would be to hard to implement it, as it is just another syntax for existing operator, and should lead to exactly same bytecode. I could try to implement for 8.6 release (not sure it is possible to implement it in 8.5 as it is already in alpha, but if it is possible, maybe someone will decide to quickly implement it for 8.5).