Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96932 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61510 invoked from network); 16 Nov 2016 16:57:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2016 16:57:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=marijic.silvio@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=marijic.silvio@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.41 as permitted sender) X-PHP-List-Original-Sender: marijic.silvio@gmail.com X-Host-Fingerprint: 209.85.214.41 mail-it0-f41.google.com Received: from [209.85.214.41] ([209.85.214.41:37392] helo=mail-it0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DA/64-05303-5109C285 for ; Wed, 16 Nov 2016 11:57:58 -0500 Received: by mail-it0-f41.google.com with SMTP id b123so62731076itb.0 for ; Wed, 16 Nov 2016 08:57:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=T3JPBxG4+/7JNGsBvb1ZUpbdAzl/11wxroHsFK6P4yA=; b=gm+kS/zG3szs/6l5GzLtyGDDm27iewKXN+a8j22Cvzh3F3BRHmVLp+l3/ddvSAbAPe FefvM94TrWf7ylh/Qr7cBtOEiOaA4kCw3eD3JgCESJHV27LiBkdpahHHHFPtHnncT3Ez mdjL7X1L6YMvpBCHsYoTIYMXJ5C2L38j0v1UqWbIXYunwurVtqsISLaCjnnlKK44oMUQ 4ZP8sKqkkhvX3drf5bMocbEB0igHGooLDaK9EQJN3elpgnw+Sm4ZGZ4dyzvA48BEPkKh 4jCVoFRmx6t0DCtPZvpWfYXnvxrSon5PZx4GpyN/Ci8sPbNyUNfGEm1NsShpUwmXHK9e 5tLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=T3JPBxG4+/7JNGsBvb1ZUpbdAzl/11wxroHsFK6P4yA=; b=T38WLh5nHPYY693q0yr61pzHEFYCElREGG5kdwH42Q6+s8DEHaBtKgmWpX/mY52W/q AtrjxF3rJeYzMPLivPLQ/6x9VML9vBSvTyWhNhE1dhwoqbvDtLOIRhEcJr7fmerr25Wq rJGc9DRTyaTDZs/WQ7sTLycMNNIz6k5zUoWKxnbEClhkFpelrbHczWXJ3epr8Pb1fWv3 et8FRqJJegSO46s34P87LPx0lqnvEk/EKYQh7l72k15VN1fFWpFwzkTrF8UQWOLcwVdE VD+J2unFndUygTChQlaSZrF4HGbZqNo+oBTKJ0s7HdrsjqGLVY2AObUMtq3WciPfdqO8 OIvw== X-Gm-Message-State: ABUngvf4BpGlkoTB9ZHdJclnhacm9NGnNVB5ff1PvqeycdIhgIorEOmQHBfZgH/baBOgvn3B91zrwbgoIg8j2g== X-Received: by 10.36.22.197 with SMTP id a188mr8278589ita.1.1479315436857; Wed, 16 Nov 2016 08:57:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.63.202 with HTTP; Wed, 16 Nov 2016 08:57:15 -0800 (PST) Received: by 10.36.63.202 with HTTP; Wed, 16 Nov 2016 08:57:15 -0800 (PST) In-Reply-To: <3D1B1C03-6453-4368-8318-29FDB5240845@gmail.com> References: <3D1B1C03-6453-4368-8318-29FDB5240845@gmail.com> Date: Wed, 16 Nov 2016 17:57:15 +0100 Message-ID: To: Paul Jones Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a114452d41ff09305416df78d Subject: Re: [PHP-DEV] Immutability RFC From: marijic.silvio@gmail.com (=?UTF-8?Q?Silvio_Mariji=C4=87?=) --001a114452d41ff09305416df78d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable @Paul, I understand that immutable doesn't automatically apply value object. Can you give us some examples where immutable object should have identity? Cheers On Nov 16, 2016 4:48 PM, "Paul Jones" wrote: > > > On Nov 16, 2016, at 07:57, Silvio Mariji=C4=87 > wrote: > > > > Hi, > > > > To anyone who is interested in this RFC. What do you think what behavou= r > we > > should have when you try to compare two immutable objects by identity > like > > this: > > I don't mean to be overly-nitpicky here, but it strikes me that the issue > might not be "immutable object" so much as "value object." > > That is, an immutable object (or at least a read-only object) might very > well have an identity. But a *value* object, in addition to read-only or > immutable, would have no identity proper. > > Maybe using the alternative term (if it applies) would help to clarify th= e > situation. > > > -- > Paul M. Jones > pmjones88@gmail.com > http://paul-m-jones.com > > Modernizing Legacy Applications in PHP > https://leanpub.com/mlaphp > > Solving the N+1 Problem in PHP > https://leanpub.com/sn1php > > > > --001a114452d41ff09305416df78d--