Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50857 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1357 invoked from network); 5 Dec 2010 18:03:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2010 18:03:19 -0000 Authentication-Results: pb1.pair.com header.from=troelskn@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=troelskn@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.173 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: troelskn@gmail.com X-Host-Fingerprint: 209.85.161.173 mail-gx0-f173.google.com Received: from [209.85.161.173] ([209.85.161.173:33353] helo=mail-gx0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/00-01246-0E3DBFC4 for ; Sun, 05 Dec 2010 13:03:18 -0500 Received: by gxk24 with SMTP id 24so6421991gxk.18 for ; Sun, 05 Dec 2010 10:02:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=U9AFpAmtMeL+PP9C2yK5z0VwkrDQwLR4bXxUarFvraY=; b=xQEwQ7Ad67pyQyUbvucm5AL7kA7IX4kPffnXI4oTXMWbI3W2iLNeCUf1UOI2HYP38v JDS93j34jPZ54XsbOBeNt/lNcvtAAhAOhTbTzvbCGdz70PkK1HB2Ybp4QWO/fQaSuQUv hPqWaUJdX/8QYadnNIBJaJtspy1YYEbWvVg34= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=IQbf/3MCZhrlRn/sTKaRVb7zoQjGh0fc8aDUj+MCYD8aPHs4sGEZhngwrMoitFM4pz AFfmKWyz7Uz0rEEgY7Z+MeHCvX9d/ceKzlbmV68DtwOCUChJdPRnHXkZWl0bLlERRQit perr7aMecUg/fYdk7m3G1ElNxTnMsa3IpJH4I= MIME-Version: 1.0 Received: by 10.90.52.10 with SMTP id z10mr3885183agz.40.1291572144032; Sun, 05 Dec 2010 10:02:24 -0800 (PST) Received: by 10.90.199.19 with HTTP; Sun, 5 Dec 2010 10:02:23 -0800 (PST) In-Reply-To: <20101205184409.3bcf5433@benny-pc> References: <201012050255.54059.larry@garfieldtech.com> <20101205104251.3e0310d5@benny-pc> <20101205184409.3bcf5433@benny-pc> Date: Sun, 5 Dec 2010 19:02:23 +0100 Message-ID: To: internals@lists.php.net Cc: Benjamin Eberlei Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Patch: Marking DateTime Instances Immutable From: troelskn@gmail.com (troels knak-nielsen) On Sun, Dec 5, 2010 at 6:44 PM, Benjamin Eberlei wrote: > So currently preferred over my patch are two solutions: > > 1. Just create a DateTimeValue object that is immutable, not optimizing PHP to handle it with efficient garbage collection. > 2. One step further, add a "static class DateTimeValue" like syntax that creates an immutable class. > > Any ideas? I'd prefer BC breakage. DateTimeValue just doesn't have a good ring to it. Besides, having two both a mutable and an immutable version at the same time is bound to cause confusion. -- troels