Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71399 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98167 invoked from network); 22 Jan 2014 08:10:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2014 08:10:48 -0000 Authentication-Results: pb1.pair.com header.from=ivan.enderlin@hoa-project.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ivan.enderlin@hoa-project.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hoa-project.net from 95.130.10.56 cause and error) X-PHP-List-Original-Sender: ivan.enderlin@hoa-project.net X-Host-Fingerprint: 95.130.10.56 host1.ip6-networks.net Received: from [95.130.10.56] ([95.130.10.56:33319] helo=host1.ip6-networks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7A/70-28690-40D7FD25 for ; Wed, 22 Jan 2014 03:10:45 -0500 Received: from Hwhost2.local (184-175.106-92.cust.bluewin.ch [92.106.175.184]) by host1.ip6-networks.net (Postfix) with ESMTPSA id 6F61660466 for ; Wed, 22 Jan 2014 09:10:41 +0100 (CET) Message-ID: <52DF7D00.2070901@hoa-project.net> Date: Wed, 22 Jan 2014 09:10:40 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:28.0) Gecko/20100101 Thunderbird/28.0a2 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] __debug_info() From: ivan.enderlin@hoa-project.net ("Ivan Enderlin @ Hoa") Hello :-), On 21/01/2014 22:42, Fr=E9d=E9ric Hardy wrote: > Hi all ! > > Le 21 janv. 2014 =E0 22:26, Sara Golemon a =E9crit : > >> Something new to argue about: >> >> https://wiki.php.net/rfc/debug-info > Very interesting feature (i have personally thinking about that several= time in the past). > However, i think that __dump() is a better name from the end user point= of view. > __debug_info() is a good name from the point of view of a C developer w= hich works on the Zend Engine or on C extensions, but from the end user p= oint of view, it=92s not the case. > And this new magical method is used internally by var_dump() so __dump(= ) seems to me a better name. > Maybe __set_dump() is an alternative too, because __set_state() is used= internally by var_export(), but i=92m not sure that it=92s a better name= than __dump which is very explicit and intuitive. +1 for `__debug` which is simpler than `__debugInfo`. The -info suffix=20 does not add any relevant meaning about the method behavior. Moreover, is this method able to throw an exception? Cheers. --=20 Ivan Enderlin Developer of Hoa http://hoa-project.net/ PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/