Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100888 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33759 invoked from network); 13 Oct 2017 06:42:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Oct 2017 06:42:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=mathiasgrimm@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mathiasgrimm@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.45 as permitted sender) X-PHP-List-Original-Sender: mathiasgrimm@gmail.com X-Host-Fingerprint: 74.125.82.45 mail-wm0-f45.google.com Received: from [74.125.82.45] ([74.125.82.45:45128] helo=mail-wm0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/71-07885-B3060E95 for ; Fri, 13 Oct 2017 02:42:04 -0400 Received: by mail-wm0-f45.google.com with SMTP id q124so18618522wmb.0 for ; Thu, 12 Oct 2017 23:42:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jg1NzWffcFjuwnppS/WGE/iW/RzYeM/2aQDEK5Sdonw=; b=YarAThCCfdv4EqeY6KrTYnybmnRJS9O6wptuGtk5GYaQ9lI5RDyVJn64LOMc8lVZoG f6CP4meak7JB0DxtKvUd5Xbs9qgZubgwoyx3znhtrIhUtr39DYz2I4pb1lqzH2AppGBy xeDmd9wEi2EZOPtXGlXov/NRQviahgDq6DMyDR4PZ6+BT364MQZDI0iVVs3+HjVemUSD fX6Sv0BflC1n0ipFFiKD4DzMTZZo6N700XCdYUoHkXmBC4vxtDARmkMLZpZ0kAwiJ7Fh rbFUreR3JoH+4eSFBy0SMJVIsOpm9LEYmA9FP+9LA0uCVupSILK1FHMscGEyx1mJBowu qKOQ== 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=jg1NzWffcFjuwnppS/WGE/iW/RzYeM/2aQDEK5Sdonw=; b=PJoDkY8XlCYinnnhkKCVNt7SEbu1WTyrR47TaqFpWe96qUjtm1yYaQbmTBuvxcaWpD uLK68EiKLrPx8vT4CLJzNZRhVlT2ye00wrkepxmYktB6RDf9C2fFZhk8EiI674O9x/Wx MfLtBhezobq/i9CHlc51o7T2cN1WlrNJgDhgpkWh2aHl+SnXcb7y6sH1Qmqfk4UauSke xhyfhB9Mfyd7GiScMRVFogmquPb/FJYTjvkcuT0amLiBGdv/4cKq7XWT75YXfqfYnHW7 lW4EMEj89nfp3kNmJ0mVNFekNVtuqfRS4FD7vYkdg7ExvXN1XFcZke9KeWOXjoZja4Lb zVYA== X-Gm-Message-State: AMCzsaUGemBoOg78ARSGk/O2YvKh3lz1kdNKGt0r+g54n2jvTfdlmWtN lQW28U/4Gtf0lkbiCGyoQRkeoPC/rAk9udHpKNA= X-Google-Smtp-Source: AOwi7QD7TOY8VZ5rR0T06GAzEB4XG7wtxH5oNOu1K6rJj+NCuhFDC5JO8cK8TL1pflM6n7WkSZ9ynn/afdh11wFJYUc= X-Received: by 10.28.143.130 with SMTP id r124mr600716wmd.122.1507876921264; Thu, 12 Oct 2017 23:42:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.161.1 with HTTP; Thu, 12 Oct 2017 23:41:59 -0700 (PDT) Received: by 10.28.161.1 with HTTP; Thu, 12 Oct 2017 23:41:59 -0700 (PDT) In-Reply-To: References: Date: Fri, 13 Oct 2017 08:41:59 +0200 Message-ID: To: Sara Golemon Cc: internals@lists.php.net, =?UTF-8?Q?Michael_D=C3=B6hler?= Content-Type: multipart/alternative; boundary="001a114696ba41cdc4055b67f477" Subject: Re: [PHP-DEV] Suggestion Method Constant From: mathiasgrimm@gmail.com (Mathias Grimm) --001a114696ba41cdc4055b67f477 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I also thought about the same for functions, just to be even more consistent. my_func::function On 12 Oct 2017 23:32, "Sara Golemon" wrote: > 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 > class 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 > --001a114696ba41cdc4055b67f477--