Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102371 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73401 invoked from network); 22 Jun 2018 15:14:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jun 2018 15:14:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.192.176 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.192.176 mail-pf0-f176.google.com Received: from [209.85.192.176] ([209.85.192.176:46570] helo=mail-pf0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/EE-32156-A521D2B5 for ; Fri, 22 Jun 2018 11:14:35 -0400 Received: by mail-pf0-f176.google.com with SMTP id q1-v6so3360289pff.13 for ; Fri, 22 Jun 2018 08:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lNgLWcuyja6FnMEab+uhkksV3a9XiObbuJZLY0eoWMY=; b=doLPiUaB1DgDYEyYlNwXPHZFiZWkTofezEgjSvuu8ytY/RLPy+mEUFr+l/5uxnnjof doCinlpo+wHFnllWCEcOtSwpv7A5PIUDUZOWAb3CgIIbxuTzh0oPpx+wALmx4nV+8mb7 35G8HgsFr0LWqtJpNd4UVij2jWp3WtW6Of0oFJ8l2cI+psJaXATTnk6UQA+aHiDIKFhQ i5ynYMLVtpFyvX8rfLU5FHzGyT+yXRUZ6o04Slz33c1uUNB0W+OyjRxgW/Oc9loW9Rek yw2WDeXjQL8fez9naYThoM/2pt1CKHjbFim0Y8Q9SRYd82MTp8gPSjzJ0HNKO0Slz40J V9Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lNgLWcuyja6FnMEab+uhkksV3a9XiObbuJZLY0eoWMY=; b=IWE/aI+TH6BiarMgln7zgoRm2SihzZ1hPsxcyogDXbOlRPGXTspXSgfficVLljrnm/ UqqNhKzbSxBx9Aq1JrsvNLqFg6UAXvrLVZSxebnZ+/WIOY88RhWcaaOaMXqfPlEpHIlb JOaBMLg+/A/1ELcOdCBCG8as+wGSSgQlv24HQex/+kbA5CJY52mkIeggUfXwXLSADH/R WHetCSUFB/LpzlykVtNPT0Im4Rc0ZDOXyCab5HJhdgIR0P838Z5wGWcliAge14cmtBUn 2WytNMi014yoog7VvYEuQrrnhoa7utyLxeqOez7q2dOwpWg06yIr+3ctAHGsPtHEzNFA klgQ== X-Gm-Message-State: APt69E3AE7/7/v2sfgBYLAwvlK0pDHrJqajb4B/4uWKg1BC0XFtqpTXA UQ+/ypGoG7Ba/0nTkKJdJmGnB0zN0Yz1IpxZ8AiSCw== X-Google-Smtp-Source: ADUXVKJwo3UItjmnCsX5EoOZ0OgcGZIO5lEvo8mk0QalaAviKRr946TzkGIf81DaPmBUABplAKsLdPEFYy/t1Er6cGA= X-Received: by 2002:a65:410d:: with SMTP id w13-v6mr1783314pgp.414.1529680471853; Fri, 22 Jun 2018 08:14:31 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:ac0a:0:0:0:0 with HTTP; Fri, 22 Jun 2018 08:14:31 -0700 (PDT) X-Originating-IP: [81.143.203.71] In-Reply-To: References: Date: Fri, 22 Jun 2018 16:14:31 +0100 Message-ID: To: Rudi Theunissen Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Equality and relative ordering of objects From: danack@basereality.com (Dan Ackroyd) On 22 June 2018 at 12:31, Rudi Theunissen wrote: > >> I think if you want to push the RFC forward, a really quite strong >> case needs to be made for why having it be a language level feature is >> so much better (or even at all better) than having it be implemented >> in userland. > > > 1. You can't override the behaviour of `<`, `<=`, `>`, `>=`, `==`, `!=` with > a userland implementation. > 2. Therefore, you won't be able to affect the internals of array functions > like `in_array`, `sort` etc. Yes, that's the type of thing that I think needs to be included as part of the RFC. Including a list of all the (or at least the important) functions that would be affected by this RFC should be made both for clarity and so that people can think through any edge cases. cheers Dan