Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81868 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83400 invoked from network); 5 Feb 2015 07:34:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2015 07:34:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=pajousek@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pajousek@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.48 as permitted sender) X-PHP-List-Original-Sender: pajousek@gmail.com X-Host-Fingerprint: 209.85.192.48 mail-qg0-f48.google.com Received: from [209.85.192.48] ([209.85.192.48:46315] helo=mail-qg0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/E4-51979-40D13D45 for ; Thu, 05 Feb 2015 02:34:28 -0500 Received: by mail-qg0-f48.google.com with SMTP id a108so5050483qge.7 for ; Wed, 04 Feb 2015 23:34:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bIHGnt+z4EkNLZ2lU8qhx+35HVTgy7DmArtoaEDayt8=; b=yYuVfg2jv5I2zC8iJwu4OjkhB2Zit1T7INmg01BUA5eDm6QD/3d+U6dAdW9uEat/Ci LVcA8Uyuu1cn60k/qYj3RScDJfuMKkBi080N17bnKYVlH9Mq/DLMh1//M9u+VwfhBiqU XA7ePL6uCGAYPMZVAS/FA39KX9Z1eZnY1U3CO5JsZuYfSdmo5IHdsn1X7/FnUolRlJTi d1zxde74d++O+ic6ITj1kIsPgC6Gr0zXDpAaaVYicGN1VO9OBO20kjEoB7p/cpbPKUSN zL4DoH+g5BJfKaB9czprkRGT117YFfyVIxIXkt96AqZZm07FZ8vQgH9zkI0yQcxUnpcn 1JqA== MIME-Version: 1.0 X-Received: by 10.140.33.162 with SMTP id j31mr5399751qgj.10.1423121665154; Wed, 04 Feb 2015 23:34:25 -0800 (PST) Received: by 10.96.66.201 with HTTP; Wed, 4 Feb 2015 23:34:25 -0800 (PST) In-Reply-To: <54CFFF2D.5020108@gmail.com> References: <54CFFF2D.5020108@gmail.com> Date: Thu, 5 Feb 2015 08:34:25 +0100 Message-ID: To: Stanislav Malyshev Cc: PHP Internals List Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [VOTE] Combined Comparison (Spaceship) Operator From: pajousek@gmail.com (=?UTF-8?Q?Pavel_Kou=C5=99il?=) On Mon, Feb 2, 2015 at 11:50 PM, Stanislav Malyshev wrote: > Hi! > >> I personally would use spaceship operator often, but only if PHP had >> operator overloading for classes. So I hope it will pass and operator > > PHP has operator overloading for classes, but just for internal ones. > See: https://wiki.php.net/rfc/operator_overloading_gmp > > For userspace ones, the feeling is unlimited overloading would be a bit > too chaotic. > -- > Stas Malyshev > smalyshev@gmail.com Hello, yeah, I meant userspace operator overloading. I don't think it would be chaotic - for instance C# allows it and it comes in handy sometimes and is not chaotic at all.