Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95534 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57945 invoked from network); 1 Sep 2016 12:12:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2016 12:12:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.52 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 74.125.82.52 mail-wm0-f52.google.com Received: from [74.125.82.52] ([74.125.82.52:37549] helo=mail-wm0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/11-47600-B3B18C75 for ; Thu, 01 Sep 2016 08:12:44 -0400 Received: by mail-wm0-f52.google.com with SMTP id v143so18494291wmv.0 for ; Thu, 01 Sep 2016 05:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Xx5sfTLk4EHV0y6j9yMLuFcSiXZlPJwG59O2U9Zyyoo=; b=djKO5rP8GefjnCL72ZQc5+Z7YG7rhy0OsQJyvQXzbMCBS3P0hwIcpIx1bPCd2oNPlB aD3iZxuNdNqRwfU6jWXwUz9Zs7kpNEEjcocUBDWHQ+AQkETnHsZMFyxwTQt/F2DKkhrC cE2sf1WTDAcdr9fD8DYMNJD7U9dzpXX47bx9l4Xdzhx4gK8P7cCsrr9wN+g/FyD6Mtrb RNzjvSfmOqZbcllRWrPtqj3tCpn2ry8Ds83rf4i98hTRZjtEUpmPPH4tr0x3bvZQRwH8 yGwgE/3acE44W4iPmuLoq3K99gLAEHiZZN/rZJIO7ZSlCGTH/L0FqKOxWGv6myt1j+xs 3Mqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Xx5sfTLk4EHV0y6j9yMLuFcSiXZlPJwG59O2U9Zyyoo=; b=bQkQXjeXboH9WkhBiA0Lhtwi8iuL1acuFCslFN07oumG8k3N4xbeSOWcE42H+eSALM gHVe2hGbnLDr+qVPRI7KvetvyGY3WfmbSWkUn+jsLDMfaSZ6C0p7Mutaoh5fzNZHAhL6 cXr3Pgtu6toUUy9wLYKWYWa/jDMyuij3ZmVX1Xk2loeXw36Qd/68475OrL6OMjafVVWB f1EfBLv3w13larlmaRbykcM870d93ndzwRMlgjdJRdztfEfB26D+t0d2rIz6+cGX0Oor f+9ydEU9HjK/jEi9xfKBU0t1PxnzBEAu7qT0X7dUUcgNc4aLut8B3h1biJcrboNyi/Mo dYvg== X-Gm-Message-State: AE9vXwNcrf/chpyGyKnqGZP3VFmVb4f3sSxaWDQi6gTgXpr8t2CIdK4MBILLvwqwHlmX8BEZI96MZD7QHi+Z9A== X-Received: by 10.194.149.113 with SMTP id tz17mr13715811wjb.64.1472731960135; Thu, 01 Sep 2016 05:12:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.19.229 with HTTP; Thu, 1 Sep 2016 05:12:19 -0700 (PDT) In-Reply-To: <1B0AC155-9A8E-49B4-8424-DAAE87C67FE2@thesba.com> References: <1B0AC155-9A8E-49B4-8424-DAAE87C67FE2@thesba.com> Date: Thu, 1 Sep 2016 14:12:19 +0200 Message-ID: To: Robert Williams Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e01160dfa55602c053b71217f Subject: Re: [PHP-DEV] Suggestion From: ocramius@gmail.com (Marco Pivetta) --089e01160dfa55602c053b71217f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Sep 1, 2016 at 3:06 AM, Robert Williams wrote: > On Aug 31, 2016, at 11:49, Yasuo Ohgaki 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 thi= s > 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 > Yeah, and I would question: 1. why are you editing with a plaintext editor and searching stuff like that? Are you in a super-hurry? Seems like a 0.001% scenario 2. why do you need to search for functions in a class? Just what kind of monstrous abomination are you working on? Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --089e01160dfa55602c053b71217f--