Re: Change -> to dot(.)
| From: | lists@rhsoft.net | Date: | Thu, 06 Jul 2017 08:46:03 +0000 |
| Subject: | Re: Change -> to dot(.) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-99792@lists.php.net to get a copy of this message | ||
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() {to gain what?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 stillwho is "we"
keep "->" until PHP 8 to maintain backward compatibilityand then force to rewrite every single piece of code out there? that's a "have a solution and seeking for the problem"