Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95528 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47924 invoked from network); 1 Sep 2016 01:30:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2016 01:30:30 -0000 Received: from [127.0.0.1] ([127.0.0.1:1782]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 6B/92-09980-6B487C75 for ; Wed, 31 Aug 2016 21:30:30 -0400 Authentication-Results: pb1.pair.com smtp.mail=rewilliams@newtekone.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rewilliams@newtekone.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain newtekone.com from 208.106.205.211 cause and error) X-PHP-List-Original-Sender: rewilliams@newtekone.com X-Host-Fingerprint: 208.106.205.211 ntsexchedgea2.newtekemail.com Received: from [208.106.205.211] ([208.106.205.211:9842] helo=NTSEXCHEDGEA2.nts.phx1) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/72-09980-82F77C75 for ; Wed, 31 Aug 2016 21:06:49 -0400 Received: from NTSMAILBOXB.NTS.PHX1 (208.106.205.242) by NTSEXCHEDGEA2.newtekemail.com (208.106.205.211) with Microsoft SMTP Server (TLS) id 8.3.348.2; Wed, 31 Aug 2016 18:06:46 -0700 Received: from NTSMAILBOXA.NTS.PHX1 (2002:d06a:cdf1::d06a:cdf1) by NTSMAILBOXB.NTS.PHX1 (2002:d06a:cdf2::d06a:cdf2) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 31 Aug 2016 18:06:45 -0700 Received: from NTSMAILBOXA.NTS.PHX1 ([fe80::241d:8268:6a82:563b]) by NTSMAILBOXA.NTS.PHX1 ([fe80::241d:8268:6a82:563b%20]) with mapi id 15.00.1210.000; Wed, 31 Aug 2016 18:06:45 -0700 To: "internals@lists.php.net" Thread-Topic: [PHP-DEV] Suggestion Thread-Index: AQHSAfYinY5lrQHmAUi/jB0M5FXEP6BgXdaAgAACsYCAAAGZAIADgDYAgABpTAA= Date: Thu, 1 Sep 2016 01:06:45 +0000 Message-ID: <1B0AC155-9A8E-49B4-8424-DAAE87C67FE2@thesba.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [172.16.153.36] Content-Type: multipart/signed; boundary="Apple-Mail=_1EA8702D-4072-4C0C-9DBE-8AE9A216C8EC"; protocol="application/pgp-signature"; micalg=pgp-sha512 MIME-Version: 1.0 Subject: Re: [PHP-DEV] Suggestion From: rewilliams@newtekone.com (Robert Williams) --Apple-Mail=_1EA8702D-4072-4C0C-9DBE-8AE9A216C8EC Content-Type: multipart/alternative; boundary="Apple-Mail=_1C0FE7E0-29DD-46A1-902B-92B00149EBF9" --Apple-Mail=_1C0FE7E0-29DD-46A1-902B-92B00149EBF9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On Aug 31, 2016, at 11:49, Yasuo Ohgaki wrote: >=20 > I remember an argument that "function" is useful to "grep functions". > This is true, but we have tokenizer and tokenizer does better job. > e.g. It excludes functions inside comments. >=20 > It may be time to consider simplifying things. Perhaps, but I would typically be doing something like this when I=E2=80=99= ve opened a PHP file in a basic text editor and am trying to find where = a function is declared rather than used. The tokenizer is of no help in = this use-case. Plus, I happen to like having a consistent item to lock = onto visually =E2=80=94 always hated missing that in languages that = don=E2=80=99t have it. (For the same reason, I much prefer the = function=E2=80=99s return type at the end rather than at the beginning = of the line.) -- Bob Williams --Apple-Mail=_1C0FE7E0-29DD-46A1-902B-92B00149EBF9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On Aug 31, 2016, at 11:49, Yasuo Ohgaki = <yohgaki@ohgaki.net> wrote:

I remember an argument that "function" is = useful to "grep functions".
This is true, but we have = tokenizer and tokenizer does better job.
e.g. It excludes functions = inside comments.

It may be time to consider simplifying = things.

Perhaps, but I would typically be doing something like this = when I=E2=80=99ve opened a PHP file in a basic text editor and am trying = to find where a function is declared rather than used. The tokenizer is = of no help in this use-case. Plus, I happen to like having a consistent = item to lock onto visually =E2=80=94 always hated missing that in = languages that don=E2=80=99t have it. (For the same reason, I much = prefer the function=E2=80=99s return type at the end rather than at the = beginning of the line.)

--  
Bob = Williams
= --Apple-Mail=_1C0FE7E0-29DD-46A1-902B-92B00149EBF9-- --Apple-Mail=_1EA8702D-4072-4C0C-9DBE-8AE9A216C8EC Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJXx38kAAoJEFBTSdRZ0ub3Sn4P/0oDf+TO50eEWjHLruRIBCSI sNdcAmvyM27IE9JdsOAObblS+jerSCG6qHT7cujiKYjCvJ/qj1MchcOs5obl5Jhy V+mntGH2UnSox1j8LDVoBWAVmx2eR7BvmFSfbFb+r9yUk4oTvzxbxx2t7jecNtuU Uc3HIAs3VGg6dQREpa27Lm4OtbkLS4aM8gi/wKHnOAUBFmiTuvqFD2UbCYTxW/nT ToMbqwPPkrfWFAwWVwKX/aYfKcMg+HGOMI7xFx60Gx/PC2trNLCxgRWY0LZPmW+1 bBrIvxmk6m6n5PqmDdWp0JxGJGJwFaHp5GE5uwb7CSc4b3+dl+iRPG1N3XZ1Sraq SFLAH6lLUzogd5qdc04TXuQVO2d/Owm1be4DVcEWoC16AmlvSBqN68vzWopklnzS mkg08TbBdTZlTcDxNmJraJRQ5ZJdUU4s6YPm+qeyFK3G1gpIcOgx83V/NJdct7RF 1zcRtwo7r/yZtI50m7dE1Xglk5T002o+Uz1Ip7B00QHTBrRendiEVJjfjZZI/Crx kSnSBiBRZ9FYauM8eWQk/R/OG1k6OkswYO7O1/AaUt2XaF9apS14EzHLhA3ulEBf +5JH94mA8myEFRsvBMeRT5Hf9e+CnFZunGtnS3OM1Z+zDut0tB4FJg0UO0h7JS09 bAq7xMr345FU6U9F/cH+ =Ujb3 -----END PGP SIGNATURE----- --Apple-Mail=_1EA8702D-4072-4C0C-9DBE-8AE9A216C8EC--