Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100887 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13165 invoked from network); 12 Oct 2017 21:32:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Oct 2017 21:32:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.220.180 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.220.180 mail-qk0-f180.google.com Received: from [209.85.220.180] ([209.85.220.180:51819] helo=mail-qk0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/50-07885-17FDFD95 for ; Thu, 12 Oct 2017 17:32:34 -0400 Received: by mail-qk0-f180.google.com with SMTP id 17so2837958qkq.8 for ; Thu, 12 Oct 2017 14:32:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=DmhjHbpB8rOMwS3nt6HvVrix9GNkK/TG+gfj4t+B/FY=; b=RUVLQixYdIbyRsooQin1FqFTiehygnWnwAw11X/DKPBclQ/wigcZa13UdDT4PFMlyC Fg2fswcFM4JaNeiwQN5SnuxDvKFSHEIyk/UpZWQboCASmQaeHawzNwh78Tkbi+SWTXm0 7bTJ4dGB81ns8dH3Me/HdsHgwmvlHy+K2JpDM/qC4m/0jAj7u54ok09Q6t8Zpz5vPCr7 xW+0v4QGWjBhu+i04S1j2pt7X3hEkr9dR6/rUIO+HXkt293LjfEieiDUYSszr3qIswR9 +RJ30pCHNXl78QOsoqerQPSnBAVb6g8dMtsR1QdWGaX7uQhjLwf0aPQZwplsmqB8w7eU U9rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=DmhjHbpB8rOMwS3nt6HvVrix9GNkK/TG+gfj4t+B/FY=; b=XJItGk9AqqkbYixEq7WC+fW8OFUi9n89SeyFMpn52Y5xH+gWW48LfKg4MB2T5eno7j 88boM0bMJ3ZRX+bVjPm3t/mMH9DovDKszDZaEcS6lRIztMouz22kzo9+1FkdZOcSA5ez txi2jOq/bKvsJQ3hBOfztb4F+B6zLPf7sgo61jv8fBoko6dSO66oFSqTYBxqWP7p/vQr 1Dx/GQfMIunOF9PRWPu7igDy8FoS5eCYrTzK+M5kxWW7hRuD3wRxMVWoRUtFAHcNOMap AQokOlLJEJK4bYF5MLurB+9AVr3V//KCKKloayYnGHg9tzoVvWBlazGI0r3EDGS8UkWx lKaw== X-Gm-Message-State: AMCzsaWVIK4dfhvd396tQ4l23fPKSJLLfWkUqoUG72MePnx0R3lrDfAu NonNhIAWaU8cg0N7GYA9oWFH5DNDR87/d1wAxKW3xA== X-Google-Smtp-Source: AOwi7QDDX6Xiw5Tt+iEqrI/dTTLzA4Mt0SSnJXeuvcbq+5fRFCJ+PQ30BAofSlz5+qo2G2twXJ30fAjXFBH44xYQK5Q= X-Received: by 10.55.71.72 with SMTP id u69mr2435076qka.289.1507843951005; Thu, 12 Oct 2017 14:32:31 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.12.156.130 with HTTP; Thu, 12 Oct 2017 14:32:29 -0700 (PDT) X-Originating-IP: [206.252.215.26] In-Reply-To: References: Date: Thu, 12 Oct 2017 17:32:29 -0400 X-Google-Sender-Auth: r1m9ConeGtKCBdM2Jw06co1SA88 Message-ID: To: =?UTF-8?Q?Michael_D=C3=B6hler?= Cc: Mathias Grimm , "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Suggestion Method Constant From: pollita@php.net (Sara Golemon) On Thu, Oct 12, 2017 at 2:33 PM, Michael D=C3=B6hler wrote: > I am open for any approach, but maybe we have to differentiate between cl= ass constants and method references? > Given the discussion we had around the namespace separator (and why we DIDN'T go with ::), there may be similar issues here. Maybe not, given the final component is specifically T_METHOD, but it should be prototyped to be sure. As to what such a reference would evaluate to: Foo::bar::method -> [ Foo::class, 'bar' ] as Michael D=C3=B6hler suggests seems the obvious answer, but (Foo::class.'::bar') may be what some would expect. Ideally we'd have first-class references to functions. -Sara