Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97795 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35581 invoked from network); 16 Jan 2017 21:38:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jan 2017 21:38:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.176 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.176 mail-pf0-f176.google.com Received: from [209.85.192.176] ([209.85.192.176:35165] helo=mail-pf0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/4D-00729-06D3D785 for ; Mon, 16 Jan 2017 16:38:41 -0500 Received: by mail-pf0-f176.google.com with SMTP id f144so56037533pfa.2 for ; Mon, 16 Jan 2017 13:38:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=HY17+UTf0GKe6YenhMJp/ajNjfBiyoTJInHR4ondbVI=; b=a9mj5D/qOXbhswUuL0czxubtFLAxYyiPSmW32qiZsDsRABZkCUBJoLXP7jXMYMNTk2 5cdBq0X43cuq9QDVsHepwm4/JD+F+vDbBEP3WBYcA1VC+l/74frg6EUVOzUZfvMDyHH3 N731UxOmTQwIJodJXVNQso1AZNhtrVpkmXw3xUfCT1FXLoEGOKb6G5vQhsUm7ul6gSHq C7QjFuqwVgodWCoOr5Cphscqa8+YxB/J8rneZmUIbufHYu9ZuFQNozURnKDpV7NpVUha uIyHwizhm+krS56zicxo8vToTUg9ppWUlisq32/SWeVHl+Mm6KtNMZvdDN6tGDrAfoMi mrfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=HY17+UTf0GKe6YenhMJp/ajNjfBiyoTJInHR4ondbVI=; b=agGIQWUCztA+H+NmmSI2JlNW+t/FOJ/Fg9gH2YGfVk5+WlU6W6QTODgDQ7qdO1LS/k jFmUQh/LT5UvTtdtsbGJRp6xFEZWaBE0Lm1UEEhcRJ5aa05hkXzcQ5sYLd7qRDQB5FOn Ebls1VxbIALJQ22S6O8s6jP4ixqwjJOKSt/uECeuaOFq4aBkOqCwCzAFAho8ChPMWpZQ /Ie1m5/1aPsVwCK1+2TTelPVb3voPEy4d/Hq4aNeu0MOLBR/sK+wS209F159QRrRQgOn sHTJn/RA+h8in8mbVmQSCvBogJMEJ1olowhnL+41XC6siHeL0DWUheyk+RUjmLGVtHyR xg6g== X-Gm-Message-State: AIkVDXJnrFlB74v0+kCvFHd9dhWybuKRkxdI8Rx5tbJnSX+UeickP93iQKbxm9O3PX9b/w== X-Received: by 10.84.253.2 with SMTP id z2mr20082527pll.116.1484602717486; Mon, 16 Jan 2017 13:38:37 -0800 (PST) Received: from Stas-Air-1652.local (108-233-206-104.lightspeed.sntcca.sbcglobal.net. [108.233.206.104]) by smtp.gmail.com with ESMTPSA id q26sm49867211pfk.94.2017.01.16.13.38.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jan 2017 13:38:36 -0800 (PST) To: =?UTF-8?Q?Silvio_Mariji=c4=87?= , internals@lists.php.net References: Message-ID: Date: Mon, 16 Jan 2017 13:38:35 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV][RFC][DISCUSSION] - Immutable classes and properties From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Discussion is open for following rfc https://wiki.php.net/rfc/immutability The RFC says: > Safe for concurrency. I'm not sure - what concurrency are you talking about? > Value objects, DTO's etc. can be easily created. Value objects can be easily created right now if you follow generic best practices - private properties and no setters, here you go with value object. > Properties can be public which removes need for getters without allowing state modification. Not sure why it is a good thing to have public properties? Also, not sure how you are going to resolve references to such properties. -- Stas Malyshev smalyshev@gmail.com