Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91936 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57305 invoked from network); 25 Mar 2016 09:40:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Mar 2016 09:40:40 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.66 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.213.66 mail-vk0-f66.google.com Received: from [209.85.213.66] ([209.85.213.66:33972] helo=mail-vk0-f66.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/DF-15440-79705F65 for ; Fri, 25 Mar 2016 04:40:39 -0500 Received: by mail-vk0-f66.google.com with SMTP id e6so7429956vkh.1 for ; Fri, 25 Mar 2016 02:40:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Bo9h3SidCkPNtpb0rCwOL3dxBr9NtJhHk9F7ys9xFpE=; b=NCE7mdiVEBdAFS2lhVxrsTzX5nJKbe2o3O56RqpJneWyU6/VN5HCDPc5w44kYbTIEL E5nGLUeH7iXfrnYUA+CoTYUp17HN2MGB1mag6RVVDP8ozc2+SZhvSgS3S5dVb/6ftRrK s6S65LsqhvAxJrRJvfr21QDi+mIR4qmioRZ4eo/AzFVazPZ0S6EalWi1N0H01ny+KQK1 wr+mT/aTfpp+YvORN8NyUbhb0GZC8Z+pZgfLdsZ4eA3BUUjAXYtTtNc2IyRa/JTd52qI imvT4DUjttsMWYE0hK2lGHaUwDkF2Stu/tMTi3kNNem67T7owhkduMdzUvA6MLqa+m6Q yv9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Bo9h3SidCkPNtpb0rCwOL3dxBr9NtJhHk9F7ys9xFpE=; b=TbaH5qvZOOzREqZ9q9tjD1OGt/KryNmj7tL96FpSbSlhGBexMdIifm9ALa6a+NNhGy 7ddbaab2isAn3scjaOcO3+fLUDY1gldqzcl1cR+N6K3PVr09AZBgeCD/IPF1NgcWoi+D +msnUNZDWh8i1cAeEdUIMzC0eu7krpyLjPElyCw83ahWfDuaonLOSHZzG/FERWk4OlvQ fqvydgOTzEBzCn8bdHWx816CJMfE9epaGzzpLoQeqTwIrz/NJQeEyeaHL+cj1OHWcLmI h+A9ao94YnxL6K/Wmlo3DOrxLGGJJ3NoqLsU5p/d+vkA5Kbi46Gh0A0i9qdeU+/vOe3p B3Ng== X-Gm-Message-State: AD7BkJKoGV3/2Rai0BgeyH6ugXkjMaYyuaVgCbgMW1O9wTz1KIy84gG4hHVZpnNnigov5zNo0Ni6kh+OVAt8FQ== X-Received: by 10.159.35.72 with SMTP id 66mr6135023uae.119.1458898836665; Fri, 25 Mar 2016 02:40:36 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.159.40.98 with HTTP; Fri, 25 Mar 2016 02:39:57 -0700 (PDT) In-Reply-To: References: Date: Fri, 25 Mar 2016 18:39:57 +0900 X-Google-Sender-Auth: dDYsEWguPbF6kzZFlFM2XodB-Vo Message-ID: To: Pierre Joye Cc: Nikita Popov , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Add spaceship assignment operator From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi all, On Fri, Mar 25, 2016 at 11:25 AM, Pierre Joye wrote: > On Fri, Mar 25, 2016 at 12:50 AM, Nikita Popov wrote: >> Hi internals! >> >> For consistency, we should add a spaceship assignment operator: >> >> $a <=>= $b; >> // same as >> $a = ($a <=> $b); > > I miserably fail to imagine any use case for this. > >> Additionally, we should add an is-identical assignment operator: >> >> $a ==== $b; >> // same as >> $a = ($a === $b); >> >> Thank you for taking this proposal under consideration. > > Besides the comment about that one from Sara, I also fail to remotely > imagine why one would need that. > > In short, yes, it is consistent but it is really unreadable, at best. The same impression. I suppose there aren't much use cases, are there? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net