Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99785 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27310 invoked from network); 6 Jul 2017 06:36:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jul 2017 06:36:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=ilija.tovilo@me.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ilija.tovilo@me.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain me.com designates 17.142.194.251 as permitted sender) X-PHP-List-Original-Sender: ilija.tovilo@me.com X-Host-Fingerprint: 17.142.194.251 pv33p00im-asmtp002.me.com Received: from [17.142.194.251] ([17.142.194.251:36239] helo=pv33p00im-asmtp002.me.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 12/56-15131-96ADD595 for ; Thu, 06 Jul 2017 02:36:27 -0400 Received: from process-dkim-sign-daemon.pv33p00im-asmtp002.me.com by pv33p00im-asmtp002.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) id <0OSN00M00NHPHX00@pv33p00im-asmtp002.me.com> for internals@lists.php.net; Thu, 06 Jul 2017 06:36:23 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=04042017; t=1499322982; bh=JwbyoiK3y3pYl3MEVn5D+Z5W9UURIZVlVvqRY6s46JQ=; h=Date:From:To:Message-id:Subject:MIME-version:Content-type; b=8ZNN8my417f49bOFN0SOSrda1jM9vOrftdh3rX6U7r9EHSAOw9utvy5V8VDprsHdd W7aWSsG1F0zL7LRzbe9rj54Yill7Y3vxhOG1pztHD4Np3pzlR8B9qVCTvSWL2zy03C 68RBW+ClFeur+hj6lyI+k7BHjoR2k9N35ZjakbeT9GBI8lKNBGLaDpbazqcNJQwgTM xS/deI/FGi4icLYv0IUzqXuNu/sRHCVFQkiOau/Z1IVwJDV2q3qidafYUNh30gH30G XwQ9WZRTk9wPpLBnoYDkwd4NUZiMCFWNzWad4UjDT7jASV7Nzb1dIqMEWdLhDNT1er 35WajmY3U8xCA== Received: from icloud.com ([127.0.0.1]) by pv33p00im-asmtp002.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) with ESMTPSA id <0OSN00MWQP0HRF10@pv33p00im-asmtp002.me.com>; Thu, 06 Jul 2017 06:36:20 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-07-06_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1034 suspectscore=7 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1701120000 definitions=main-1707060112 Date: Thu, 06 Jul 2017 08:29:02 +0200 To: internals@lists.php.net, "Khawer ." Message-ID: <0cdd4ed4-2d44-4150-9684-8361f6e4bdee@Spark> In-reply-to: References: X-Readdle-Message-ID: 0cdd4ed4-2d44-4150-9684-8361f6e4bdee@Spark MIME-version: 1.0 Content-type: multipart/alternative; boundary=595dda5e_6b8b4567_5d09 Subject: Re: [PHP-DEV] Change -> to dot(.) From: ilija.tovilo@me.com --595dda5e_6b8b4567_5d09 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline The dot is already the string concatenation operator. This would be a horrible migration process. The PHP team is never going to upset the developer experience that much for a purely cosmetic change. Also, C and C++ use the -> symbol, two major languages. Regards On 6 Jul 2017, 08:13 +0200, Khawer . , wrote: > 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(.). We will still keep "->" until PHP 8 to > maintain backward compatibility. --595dda5e_6b8b4567_5d09--