Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40551 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34091 invoked from network); 18 Sep 2008 18:39:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Sep 2008 18:39:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=addw@phcomp.co.uk; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=addw@phcomp.co.uk; sender-id=pass Received-SPF: pass (pb1.pair.com: domain phcomp.co.uk designates 213.152.38.186 as permitted sender) X-PHP-List-Original-Sender: addw@phcomp.co.uk X-Host-Fingerprint: 213.152.38.186 freshmint.phcomp.co.uk Linux 2.6 Received: from [213.152.38.186] ([213.152.38.186:60274] helo=mint.phcomp.co.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/51-27158-240A2D84 for ; Thu, 18 Sep 2008 14:39:04 -0400 Received: from addw by mint.phcomp.co.uk with local (Exim 4.63) (envelope-from ) id 1KgOP1-0008OQ-WA; Thu, 18 Sep 2008 19:38:56 +0100 Date: Thu, 18 Sep 2008 19:38:55 +0100 To: Ionut Gabriel Stan , internals@lists.php.net Message-ID: <20080918183855.GB30186@mint.phcomp.co.uk> References: <962975.69490.qm@web36405.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <962975.69490.qm@web36405.mail.mud.yahoo.com> User-Agent: Mutt/1.4.2.2i Organization: Parliament Hill Computers Ltd Subject: Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc From: addw@phcomp.co.uk (Alain Williams) On Thu, Sep 18, 2008 at 11:30:37AM -0700, Ionut Gabriel Stan wrote: > Actually, I somehow understand what he wants, considering we'll soon have lambdas and closures. I mean, in case of javascript a variable can hold as well a function as it can hold anything else. > Anyway, I don't think this is the case for PHP. I do find it ugly to write $function(), but I guess I'll live with it as I did until now. So if you drop the '$' the way that you call a function referenced in variable 'funref' is not: $funref() but funref() However: the PHP parser will take that to be a call to a function named 'funref'. So you need to change the syntax to, perhaps, something like C: (funref)() I can't see people understanding that. Stick with what we have. -- Alain Williams Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php Chairman of UKUUG: http://www.ukuug.org/ #include