Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78319 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87962 invoked from network); 24 Oct 2014 23:39:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2014 23:39:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.52 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.215.52 mail-la0-f52.google.com Received: from [209.85.215.52] ([209.85.215.52:55777] helo=mail-la0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/D2-06869-833EA445 for ; Fri, 24 Oct 2014 19:39:36 -0400 Received: by mail-la0-f52.google.com with SMTP id hz20so3402114lab.39 for ; Fri, 24 Oct 2014 16:39:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=wT2rdn39CdrR0f8CRrn6VZ2iZGv8Mewuj2DE1Ib9X40=; b=EPDdZmRaZ8+kwe3W0/BWVToCYZZuyfRpEJ7igx7nviyys2mvwkl2jL8CmzCIjj5uwF QivSHCLIzKWNplDcVN4gn4cjWz24ak5YrkZV4b7gb0FeeC1/zvSOgFUdBuY8kIhBHwAO 4DnnMrHbJVOBDtzbsTfoz6R+dBLlnx+xQFKDPVDMAlqst87TNx3tn00FuTa8I3BHlISx zCBJ4sZqdDTdIGyB7D8gS5wD+XsYazBoTPzB0+LGe4uOQOBj7oiYywtr2KIchBU6iKYz 709OWPtSq99srmrD1YfO1njVBdpwKAqGYc0rhtUP03tDkNE3r8S8iOSNLzzcx1hbK2fS wnnA== MIME-Version: 1.0 X-Received: by 10.152.179.164 with SMTP id dh4mr7499305lac.55.1414193972753; Fri, 24 Oct 2014 16:39:32 -0700 (PDT) Sender: kalle.php@gmail.com Received: by 10.112.73.97 with HTTP; Fri, 24 Oct 2014 16:39:32 -0700 (PDT) In-Reply-To: References: <6E04B9BE-854E-4112-8C74-7D90BD8BFE95@ajf.me> Date: Sat, 25 Oct 2014 01:39:32 +0200 X-Google-Sender-Auth: q_VZ_TJW7Xl_2Pq-3eR09QARH_c Message-ID: To: Xinchen Hui Cc: Andrea Faulds , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Readonly Properties From: kalle@php.net (Kalle Sommer Nielsen) 2014-10-24 7:09 GMT+02:00 Xinchen Hui : > so you prefer to expose the name of the property anywhere? > > let's say you expose a readonly int value name iSize.. > > but later, the value also need to be a double, > > then you also prefer add another dval? (since you can not simple > change ival name, since it was exposed) That is purely a naming decision, not something that should cause the actual design of a language to not be available and even then, what you are saying seems like a very edge case to me and I have a hard time trying to understand if as I understand it, is your argument against this feature. -- regards, Kalle Sommer Nielsen kalle@php.net