Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108557 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 27760 invoked from network); 14 Feb 2020 02:17:27 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Feb 2020 02:17:27 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 244D3180538 for ; Thu, 13 Feb 2020 16:31:58 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, SUBJ_ALL_CAPS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 13 Feb 2020 16:31:57 -0800 (PST) Received: by mail-yb1-f170.google.com with SMTP id b6so3966099ybr.0 for ; Thu, 13 Feb 2020 16:31:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=sn5yzAGKtSJLG+6+vryel3XO/pBgqxPlNDOcgGIQIgE=; b=oarle5Zzm8hIl9Pi/LXilO5geJBHyb7ad4Z4Lbm3fq2C3BuCV4nnudjqnAHCWgZFry 4hcO1ncjgCHtXhPSHAM8ecv5lJT3NL9neegJ3Rzya5KSEF67W9JIcQI3mmGnhuQ/M3a8 kSOduKcGxc7WTlqntp0FucgrwVNLS9WQvr8D0onK1bc4EkEr1G6rxzgU3iN75GlvmPxC oauCQ+q7VlTSY4Y7+bnFVFwmDt03EtM2k92d9jrlEws4JzjeVBp4sNx0VXV2oFUwS1/6 Zfj1y35lbNg0stWWT6N+FA213hSQ8AoVqVZqkqStgPnngV3xWThN9BZkCiwDDpKkJCn5 qrwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=sn5yzAGKtSJLG+6+vryel3XO/pBgqxPlNDOcgGIQIgE=; b=fabiog/BD3GTAh2WpF55zIgTnSLZp/vm6TJjDAXpgCzw8aY16lCnXDlhXRU0YPCDuA U0C5c9kZOKqmvG6aQUmaGbj4EiF9X37Yt9nTZolD6eUswgumWawcVUZFZ5dscw+OFRSS sjcR8Xd96rib05Yhu2htn+ak2wep0dtNsOiZ4ID0R8MI70/x3Ol7/N1tUq69wwvMawr3 OKMo9B3IyNOHkeI30rFZpMt5+t/rhpstmf1AvZln+ntw1XT5qb6kpoSQT2Rs5+0XXBAI sQfqCZrwTHc/5qErEDi4bUjCWlzFspmuVunTHYBxOdwjS0d0JZhM9R5xGVkCHPSVHmZ5 MUTQ== X-Gm-Message-State: APjAAAUp/4sxolbRUKWNP0NthaAlR0Ych+VoiIhPc92KkIxU9iMTfqij U1VUXCBlK435TGI44Qhp0zMmrDmd1Zrb7g== X-Google-Smtp-Source: APXvYqyH7hAi5hQ7MvAWhUVrXKo1ape/wawHwfFvez/71qsSa3ezpVqBBt6LbA8d1xAwd5GWY6zoLw== X-Received: by 2002:a25:8502:: with SMTP id w2mr326493ybk.161.1581640314767; Thu, 13 Feb 2020 16:31:54 -0800 (PST) Received: from ?IPv6:2601:c0:c680:5cc0:6580:673d:95e8:48ed? ([2601:c0:c680:5cc0:6580:673d:95e8:48ed]) by smtp.gmail.com with ESMTPSA id a74sm1827822ywe.42.2020.02.13.16.31.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Feb 2020 16:31:54 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) In-Reply-To: <5ad01aaf-922e-48b2-0960-8bdf82c557e8@freedom.nl> Date: Thu, 13 Feb 2020 19:31:53 -0500 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <7D6FCE5B-958A-4C54-B0B2-66C4148B1242@newclarity.net> References: <10FCCCED-B8AE-4394-91B3-0FEB448E2398@gmail.com> <2C404984-AD76-4CDF-8E1A-04DF8EF024DD@newclarity.net> <5ad01aaf-922e-48b2-0960-8bdf82c557e8@freedom.nl> To: Dik Takken X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [PHP-DEV] [RFC] From: mike@newclarity.net (Mike Schinkel) > On Feb 13, 2020, at 5:26 PM, Dik Takken = wrote: >=20 > On 13-02-2020 19:19, Mike Schinkel wrote: >> function foo{} >>=20 >> foo::function =E2=80=94 Returns name of function >> foo::fn =E2=80=94 Returns closure for function=20 >>=20 >> Since using `fn` creates anonymous function closures it kinda makes = sense that `::fn` would return a closure. >=20 > That is somewhat confusing in my opinion, the two class constants are > too similar. I would rather prefer: >=20 > foo::function =E2=80=94 Returns name of function > foo::closure =E2=80=94 Returns closure for function >=20 > Regards, > Dik Takken I actually prefer foo::closure over foo::fn though either would be fine = with me, especially if it means getting the feature vs. not getting the = feature. The reason I proposed ::fn was because I trying to suggest something = that I though Larry Garfield would appreciate given his recent = comment[1] in response to you where he said:=20 "Analysis: I stand by my earlier statement that ::function is just too = damned long for this funtionality. Not when already reserved shorter = options exist. ::fn" -Mike [1] https://externals.io/message/108459#108542=20=