Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40564 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19994 invoked from network); 19 Sep 2008 10:39:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2008 10:39:08 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.163 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.25.124.163 il-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.163] ([212.25.124.163:17932] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/19-08965-B4183D84 for ; Fri, 19 Sep 2008 06:39:08 -0400 Received: from ws.home ([10.1.1.1]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 19 Sep 2008 13:39:06 +0300 Message-ID: <48D38146.3010702@zend.com> Date: Fri, 19 Sep 2008 14:39:02 +0400 User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: Greg Beaver CC: marius popa , internals@lists.php.net References: <48D2D1DA.7090802@chiaraquartet.net> In-Reply-To: <48D2D1DA.7090802@chiaraquartet.net> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Sep 2008 10:39:06.0751 (UTC) FILETIME=[F12318F0:01C91A43] Subject: Re: [PHP-DEV] Re: php7- dropping the $ from the variable name - rfc From: dmitry@zend.com (Dmitry Stogov) Greg Beaver wrote: > marius popa wrote: >> I was looking at the examples used in php.js library >> http://phpjs.org/functions/index >> and it struck me that is cleaner to read the functions and code without the >> $ names in it >> >> From what i understand $ in front of variables is an Perl legacy > > This would also eliminate constants from PHP, as currently they are > T_STRING and variables would become T_STRING. Not a good idea. > > define('oops', 1); > $oops = 2; > echo $oops,' ',oops; > ?> From my point of view, it's not a good idea to have classes, functions, constants and variables with the same "conflicting" names (PHP way). Anyway, I'm not going to change it. Thanks. Dmitry.