Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99792 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45026 invoked from network); 6 Jul 2017 08:46:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jul 2017 08:46:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=lists@rhsoft.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=lists@rhsoft.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain rhsoft.net designates 91.118.73.15 as permitted sender) X-PHP-List-Original-Sender: lists@rhsoft.net X-Host-Fingerprint: 91.118.73.15 mail.thelounge.net Received: from [91.118.73.15] ([91.118.73.15:46511] helo=mail.thelounge.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/89-15131-FC8FD595 for ; Thu, 06 Jul 2017 04:46:09 -0400 Received: from rh.thelounge.net (Authenticated sender: h.reindl@thelounge.net) by mail.thelounge.net (THELOUNGE MTA) with ESMTPSA id 3x3BCv6gMDzXMT for ; Thu, 6 Jul 2017 10:46:03 +0200 (CEST) To: internals@lists.php.net References: Message-ID: <832eaf14-312f-46c6-a452-81cff378b306@rhsoft.net> Date: Thu, 6 Jul 2017 10:46:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-CH Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Change -> to dot(.) From: lists@rhsoft.net ("lists@rhsoft.net") Am 06.07.2017 um 08:13 schrieb Khawer.: > In all major programming languages we access object properties and methods > using dot(.). > > C#: > Abc Abc = new Abc(); > Abc.method(); > > Java: > Abc Abc = new Abc(); > Abc.method(); > > JavaScript: > var apple = new function() { > this.name = "Test"; > } > alert(apple.name()); > > > Why not to make PHP similar to these languages by allowing to access object > properties and methods using dot(.) to gain what? > We will still who is "we" > keep "->" until PHP 8 to maintain backward compatibility and then force to rewrite every single piece of code out there? that's a "have a solution and seeking for the problem"