Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58338 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32645 invoked from network); 29 Feb 2012 17:16:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Feb 2012 17:16:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain l-i-e.com designates 67.139.134.202 as permitted sender) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:1974] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/E5-33921-95D5E4F4 for ; Wed, 29 Feb 2012 12:16:11 -0500 Received: (qmail 74451 invoked by uid 98); 29 Feb 2012 17:16:09 -0000 Received: from localhost by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.05 ( Clear:RC:1(127.0.0.1):. Processed in 0.040547 secs); 29 Feb 2012 17:16:09 -0000 Received: from localhost (HELO www.l-i-e.com) (127.0.0.1) by localhost with SMTP; 29 Feb 2012 17:16:08 -0000 Received: from webmail (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Wed, 29 Feb 2012 11:16:08 -0600 Message-ID: <4fef469b827526b1dbb9806d507338d8.squirrel@www.l-i-e.com> In-Reply-To: References: Date: Wed, 29 Feb 2012 11:16:08 -0600 To: internals@lists.php.net User-Agent: SquirrelMail/1.4.21 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] [Draft RFC] Object Casting and Assignment Handlers From: ceo@l-i-e.com ("Richard Lynch") On Tue, February 28, 2012 8:40 pm, Anthony Ferrara wrote: > https://wiki.php.net/rfc/object_cast_magic Suggestion: Rename __castTo as __castObject, to be parallel to engine Question: Is there no need to implement the get() function in userland? It "feels" wrong for 1/3 to be missing, but I probably just don't "get it" The const example seems quite contrived, given that a) it's allowed to be unset() and b) PHP has define() I believe that particular example weakens the RFC rather than strengthens it. Re: your conversation with Stas: I have to agree with Stas. In short, there is "complexity" and "complexity squared" and this just seems like "complexity squared" for a handful of edge cases that only provides syntactic sugar / less typing versus a new feature that is needed to achieve a goal that currently can't be done. If it made it possible to achieve the impossible, or even just simplified your code without such a wide scope for abuse by people who only think they know what they are doing... -- brain cancer update: http://richardlynch.blogspot.com/search/label/brain%20tumor Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FS9NLTNEEKWBE