Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84489 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36579 invoked from network); 9 Mar 2015 22:38:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Mar 2015 22:38:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.182 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.182 mail-pd0-f182.google.com Received: from [209.85.192.182] ([209.85.192.182:35785] helo=mail-pd0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C3/00-36114-9E02EF45 for ; Mon, 09 Mar 2015 17:38:34 -0500 Received: by pdbfp1 with SMTP id fp1so47098145pdb.2 for ; Mon, 09 Mar 2015 15:38:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=tnN7TZsuLjKsDh3yA4zhcWUewmRXaaT9As2gjawXljU=; b=U/vqzFG0E4kxLiy+DYiCDin/1ygBuf99lYuEwO6zTGb9CHnfdAswLqGLemaHC8j5kg 5f7x/lQjkORjlPhO9s8N9OZ/VsQvF5ylw2jDhoJOYTxh+gyz0tZ0u5ozEPmuoNovu1G/ BFtfA1TAqmvFGJQWUOwG/1zHu+MudFetEdYYZl/d1KknYE+T56C+GqbQDGmfca+K+Ii+ /3GQnfQSwGeU9Ub55kE9Bphsz8gQB3v6pjPlXD7E4hsZrjhAdrHqtTVz08uG2t1yLFMq tjw8JxTIBP/7xCDdI+EqXhtLXnZ6aO6uMMeMQPTxHaIZxznBn4AFzzc/jzVnVX+m7DFv 2doA== X-Received: by 10.70.0.176 with SMTP id 16mr59271337pdf.78.1425940711058; Mon, 09 Mar 2015 15:38:31 -0700 (PDT) Received: from Stas-Air.local (tan1.corp.wikimedia.org. [198.73.209.1]) by mx.google.com with ESMTPSA id qm12sm20862507pdb.36.2015.03.09.15.38.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Mar 2015 15:38:30 -0700 (PDT) Message-ID: <54FE20E5.1060605@gmail.com> Date: Mon, 09 Mar 2015 15:38:29 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Johannes Ott , internals@lists.php.net References: <24.71.03288.592FDF45@pb1.pair.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Request Feedback for Instance Variable Sugar RFC From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > as developing both Java and PHP, I would suggest a solution similar to > Java. As long as there is no conflict to a local variable the keyword > $this should be the default. "As long as" there is a key. There may be conflict, and unlike Java PHP's properties are dynamic. Java way is very hard to track which variable belongs where, which is somewhat mitigated by the fact that the property set is fixed (so the IDE can help you to figure it out) but not completely. I think PHP's way is more verbose but much more clear. -- Stas Malyshev smalyshev@gmail.com