Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19393 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74752 invoked by uid 1010); 4 Oct 2005 13:23:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74737 invoked from network); 4 Oct 2005 13:23:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Oct 2005 13:23:52 -0000 X-Host-Fingerprint: 213.136.52.47 mailgate2.mysql.com Linux 2.5 (sometimes 2.4) (4) Received: from ([213.136.52.47:52122] helo=mailgate.mysql.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 52/5A-54476-76282434 for ; Tue, 04 Oct 2005 09:23:52 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate.mysql.com (8.13.4/8.13.4) with ESMTP id j94DNlEM006833; Tue, 4 Oct 2005 15:23:47 +0200 Received: from mail.mysql.com ([10.222.1.99]) by localhost (mailgate.mysql.com [10.222.1.98]) (amavisd-new, port 10026) with LMTP id 04118-04; Tue, 4 Oct 2005 15:23:47 +0200 (CEST) Received: from [192.168.1.6] (p5486A1F2.dip0.t-ipconnect.de [84.134.161.242]) (authenticated bits=0) by mail.mysql.com (8.13.3/8.13.3) with ESMTP id j94DNfxm002232 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 Oct 2005 15:23:44 +0200 Message-ID: <43428237.7050309@php.net> Date: Tue, 04 Oct 2005 15:23:03 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050704 SeaMonkey/1.0a MIME-Version: 1.0 To: bu@orbitel.bg CC: internals@lists.php.net References: <200510030943.47429.bu@orbitel.bg> In-Reply-To: <200510030943.47429.bu@orbitel.bg> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mailgate.mysql.com Subject: Re: [PHP-DEV] wishlist item for 6.0.0 From: hartmut@php.net (Hartmut Holzgraefe) Petar Nedyalkov wrote: >> proper scopes for global, classes and functions. >> will allow for local variables for functions and classes without having to >> use $this->foo in classes and will allow for a more c/c++ like classes. > > I think this will pollute the namespace a lot and may lead to spaghetti code > problems. When reading C++ code it's usually rather hard to determine whether a given variable is a member of the class, one of its parent classes, the local context or something global. So i'm all for keeping the $this-> prefix even though it adds some extra typing ...