Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87147 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35604 invoked from network); 13 Jul 2015 15:00:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jul 2015 15:00:16 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.177 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.177 mail-wi0-f177.google.com Received: from [209.85.212.177] ([209.85.212.177:37938] helo=mail-wi0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/E9-43998-572D3A55 for ; Mon, 13 Jul 2015 11:00:11 -0400 Received: by wicmv11 with SMTP id mv11so64496889wic.1 for ; Mon, 13 Jul 2015 08:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=tT/V/39lIoh/u3tKlnkqn0ATgxowdgH6M0R9jPoeQic=; b=hoVvJxazuQRFNlssDbxilMIR9FQ7FmmratS5F/iGY1vYMIa8IYj41zVu4+spdPmbeU XgMerl/2HiJ6Qn3f6iaCUrmekevKscXcg4y54ntIKQzyUB8WK4aNmPN8yYQPBRgPI7/5 w2HczZ5HJvpXvwcgLej01zs8dTobv/aJYE2jZ+Mds1UUs3o11wSCLRPaGxSjQUk7b7ZW bS/hL2WyZhnvxIKb8wUZORBGvptpQDYWID1LISBuPOgmr3luC7CRKBE+uiEnv3YtSiYQ UIWdo2tshFgd0I7WjbTYwPjawGH1LLGqYupEjLIXauk4T+u4T/kXp5nWKYRYRocfKYYn Dl9A== X-Received: by 10.180.19.103 with SMTP id d7mr23591136wie.19.1436799600461; Mon, 13 Jul 2015 08:00:00 -0700 (PDT) Received: from [192.168.0.136] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id ym2sm29655591wjc.44.2015.07.13.07.59.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jul 2015 07:59:59 -0700 (PDT) To: internals@lists.php.net References: <59f8fa10-10d2-4498-91a8-bacc3fcab4ed@me.com> Message-ID: <55A3D26B.7080805@gmail.com> Date: Mon, 13 Jul 2015 15:59:55 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] JsonSerializable New Interface method Proposal From: rowan.collins@gmail.com (Rowan Collins) guilhermeblanco@gmail.com wrote on 13/07/2015 15:19: > What about JsonDeserializable? I would like to have the choice to have a > serialize-only operation. Yeah, this would need to be a new interface, because interfaces can't have optional methods, so changing the existing interface would instantly break all existing implementations, which would be a big no-no IMHO.