Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99786 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28887 invoked from network); 6 Jul 2017 06:39:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jul 2017 06:39:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.174 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.128.174 mail-wr0-f174.google.com Received: from [209.85.128.174] ([209.85.128.174:32998] helo=mail-wr0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/A6-15131-73BDD595 for ; Thu, 06 Jul 2017 02:39:51 -0400 Received: by mail-wr0-f174.google.com with SMTP id r103so14674915wrb.0 for ; Wed, 05 Jul 2017 23:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Mh2gPpi6Tj5DbUgmq2iqTUqPrazYfabNF8MduKpUrok=; b=B5aA+xgKUSvhwPXBSlNqmNrX3A79xGI71b8fQWzQfLFch+0PuJeuOLma3trzsCnikQ Zi7k8Ak8Y3BfLAxqq+xNA+KI4Yyl8krDClcCtqyhjShD+JW4kqB3eBjbnj5pI7jfRYMk dGLi3TAzDpLx0wmNTrU/qS3tY7Le0c+k3ghZLNwzFlXXggYWVXfqkVM3sXXvgQSDtS02 gRpKE8vf+YdUVPNME292jhJ2qcPYEp0PhYS411f1RMvjksWy5w/zupc6CYGaF4uFUTKd o8ACg8JizYdQGlRCU8zCyzFPwQGk5R3ahmOUMGQqnDOumDM2f0SoMiTPgR6yYmmJoctq jz5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Mh2gPpi6Tj5DbUgmq2iqTUqPrazYfabNF8MduKpUrok=; b=Ln0gvrxMtuPj/4UDNaInlfc/qXYFOrvefDrMPG7+ArhDAsOHXlhd/jBxBwUnt3jxzj l0KcNlASDuN/rhEmOpiArrFiIyInBULMZJAGFXg32t8xtJ6ooGc2hrtjDOP2S099pO55 OTFHTXtMPIpdKFAI2vjOqyCpreVtqnN0tJTGJo4DqWr3eCCJgYYfWkKMYwBeeQ6VDt3e +nNIJ6+7Krv9TP7tQo85stHu0U5QLrtwIBcka5NrZISYte8xv4+poMBUGVtLbXAr9kIS +YT1P9p9mCRM9swJgOrO+B7AzeOBNbQt3to9dN4h8VXronLryK5s+CXLiOBqnRaXCHtJ slXg== X-Gm-Message-State: AKS2vOxuqiUM0hn3SXU1JtG7JeQViSRCGIO8ipwV3UMfHRQjrS3Avm4+ 12Xx267RPPObq6OVQCN2QFas1w3ktA== X-Received: by 10.28.232.29 with SMTP id f29mr23156008wmh.55.1499323188488; Wed, 05 Jul 2017 23:39:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.161.155 with HTTP; Wed, 5 Jul 2017 23:39:48 -0700 (PDT) Received: by 10.223.161.155 with HTTP; Wed, 5 Jul 2017 23:39:48 -0700 (PDT) In-Reply-To: References: Date: Thu, 6 Jul 2017 08:39:48 +0200 Message-ID: To: "Khawer ." Cc: PHP Internals List Content-Type: multipart/alternative; boundary="001a1147df480db2540553a06297" Subject: Re: [PHP-DEV] Change -> to dot(.) From: ocramius@gmail.com (Marco Pivetta) --001a1147df480db2540553a06297 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable What's the point? Sorry for the snarky response, but it had to be done =F0=9F=98=82 On 6 Jul 2017 8:13 AM, "Khawer ." wrote: In all major programming languages we access object properties and methods using dot(.). C#: Abc Abc =3D new Abc(); Abc.method(); Java: Abc Abc =3D new Abc(); Abc.method(); JavaScript: var apple =3D new function() { this.name =3D "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. --001a1147df480db2540553a06297--