Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50715 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3785 invoked from network); 30 Nov 2010 09:24:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2010 09:24:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:49836] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/44-01713-BB2C4FC4 for ; Tue, 30 Nov 2010 04:24:12 -0500 Received: by gxk20 with SMTP id 20so2880677gxk.29 for ; Tue, 30 Nov 2010 01:24:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=sA2P8J5PZR+SeDwxKF3GZbAom2J9oyuNNjKzw8tBOxw=; b=u8+uujXTwqshIm0TwCU9ILyTzr4NgIZsQVuOI7KL4HS4QG39AqrVesxQ9DhujYc+wg k4esvRoBNj49L0Jy/0XyiW39+Wlm64AJpydYOBUAbGTci0STwp46AogVR6BIKAKXmJPy kz5oWRlp6o3cqwfB7xPEOuD163CWpiJhAQGvM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=rPpvg7/5eAquSbEvDyeEN1NfhM1GzuFCPLKcFw8PPp6nerqgF2SxH/Exld5ObEWns8 376hW7s6fCUqxwRud+hqr/srIvkEL2BqzetWxPIEc9KPWPrJj5Ch6XCH60k3s7ZTiTnD BTd2mqQqOnwJ6xhjhkcXsGJU8vjxMozs01IWs= MIME-Version: 1.0 Received: by 10.151.155.16 with SMTP id h16mr12073077ybo.409.1291109049116; Tue, 30 Nov 2010 01:24:09 -0800 (PST) Received: by 10.236.108.11 with HTTP; Tue, 30 Nov 2010 01:24:09 -0800 (PST) In-Reply-To: References: <1290879624.7033.826.camel@guybrush> Date: Tue, 30 Nov 2010 11:24:09 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: RFC: Making T_FUNCTION optional in method declarations From: arvids.godjuks@gmail.com (Arvids Godjuks) Personally, as a user-land developer, I'm against it, so -1. function keyword is the only sane way to quickly find a function definition in lots of code. Not always IDE's are able to fully understand the interconnections in frameworks and point by CTRL + Click me to the function definition, not to say that in many cases you just don't have that IDE available right now and right here. Now it's quite easy to make a search on a folder recursively - just enter "function blah" and here you go - one entry with the function definition. Try that with the function/method name without the "function" keyword, good luck with going through tons of entries. I deal with typing the whole "public/private function blabla() {" by defining a auto complete shortcut like "prfnc => space => private function |(){" where | is cursor. Please keep it KISS way. Language should evolve for sure, but some things are not just worth sacrificing the verbosity even if it means cuts typing some of the most common keywords in the language and can be perfectly done keeping the BC. P.S. Personally I will prohibit my developers to use the short syntax without the "function" keyword.