Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98107 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94577 invoked from network); 1 Feb 2017 13:44:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Feb 2017 13:44:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.195 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.210.195 mail-wj0-f195.google.com Received: from [209.85.210.195] ([209.85.210.195:34355] helo=mail-wj0-f195.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/03-51557-146E1985 for ; Wed, 01 Feb 2017 08:44:33 -0500 Received: by mail-wj0-f195.google.com with SMTP id ip10so13109818wjb.1 for ; Wed, 01 Feb 2017 05:44:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=PQ/zc6TFxD/eNJ/CaIvSnH0IkirJLDfdvmIi1m+7NnE=; b=H30+HaO4rYGOMBFnRZzCUBa2ZA5WFUarIkBQ3uOBOri1dVjOQXCi4SUv6aYRmuzFZi HcwWjERgLLKZ4wnqLOfT+XYDiCf87Yvr3EN+WIR8vJqO9qozqz1vmP0A5al3mV7OxL7I UFPCTINOj/ySgh0sZRcvY0pZ/7tBV8qdPSZZ5N+LJ2WMHA1dRwAU3s8vniy9JaO/14pD IKyYqnbORzX8zMS/jg6CGtK4W4maalFpmWral8uO9xsDUz7WH5fCknD0Ho6Sm5xdRMXx NzNeAJvfmCPcNGhwNzZQ5hYiCc2gslSqU3Wxv1Q7WPcFMMyfY2s3dK/o4ophSbwULsys 1pgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=PQ/zc6TFxD/eNJ/CaIvSnH0IkirJLDfdvmIi1m+7NnE=; b=IH+covIE67X9Xv6eushlhJis8zjNsGC3efCUQE9YaFMmU/oIstHBW6hk7wmVRmvqbv E1Pwb0KeSQzwkkDd8O4TEpg6eYh2la544hr+30FiA6Mf39HnEjZdLTKHYgGbdH/DhId8 wn9RcWk4XJnbaQkxzSJwPDf3My2M0Ug69J+WuLG8pXQwA8VRZt1ZTXcbV2DSXbd0M3gu 36Im7Z+BGBSwVBdOBPwRKulqL767aAgzQBa3vdbPInV4MBX+AcZJZUrUfsVi7AxpcOWT kw2G+XLMg3HSGnmOQ/sFwGyqDq5uyeZS2OwFugzPaKaumHbKA6nNA0uDmXQ8EVhDDznc XCNg== X-Gm-Message-State: AIkVDXKAHJaLeQUZ4fgWoenXOH+GP7D6JqYJdOpCFJoQps7B9qkIDIM2nDE3nZLHUuH7sQ== X-Received: by 10.223.139.71 with SMTP id v7mr2568029wra.99.1485956670120; Wed, 01 Feb 2017 05:44:30 -0800 (PST) Received: from [10.7.83.103] (188.29.164.93.threembb.co.uk. [188.29.164.93]) by smtp.gmail.com with ESMTPSA id 191sm29753609wmo.21.2017.02.01.05.44.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Feb 2017 05:44:29 -0800 (PST) Date: Wed, 01 Feb 2017 13:44:25 +0000 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net,Ryan Pallas CC: Adam Harvey Message-ID: <5090CB81-EDD3-4FFC-9B1A-C032947CF771@gmail.com> Subject: Re: [PHP-DEV] [RFC] Comparable From: rowan.collins@gmail.com (Rowan Collins) On 31 January 2017 23:02:07 GMT+00:00, Ryan Pallas = wrote: >I would say compareTo makes sense, because that's what you're asking >the >method to do=2E Methods aren't usually past tense as it would seem weird= =2E To be specific, methods are generally named as "imperative" phrases, becau= se they are instructing the object in question to do something=2E Read the = "->" as "I would like you to", and you get "$foo, I would like you to compa= reTo $bar"=2E The only real exception I can think of is boolean tests like "isFoo" and "= hasFoo", which are hard to put succinctly in imperative form (Ruby instead = uses the convention of "foo?")=2E "withFoo" is also common, as shorthand fo= r "getCloneWithFoo" - but note it doesn't have a verb at all=2E Regards, --=20 Rowan Collins [IMSoP]