Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36992 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12331 invoked from network); 13 Apr 2008 10:07:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2008 10:07:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 85.10.196.195 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 85.10.196.195 serveforce1.backendmedia.com Linux 2.6 Received: from [85.10.196.195] ([85.10.196.195:56122] helo=serveforce1.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/3C-36570-B7BD1084 for ; Sun, 13 Apr 2008 06:07:56 -0400 Received: from [192.168.0.151] (77-57-23-243.dclient.hispeed.ch [77.57.23.243]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) by serveforce1.backendmedia.com (Postfix) with ESMTP id CF12F181D2D4; Sun, 13 Apr 2008 12:07:43 +0200 (CEST) Cc: internals@lists.php.net Message-ID: <37C655F0-D212-420C-9320-7953A69C5EDB@pooteeweet.org> To: Stanislav Malyshev In-Reply-To: <47FA60F8.7060702@zend.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Sun, 13 Apr 2008 12:07:16 +0200 References: <1207539695.5736.42.camel@pena> <8d7b8c130804062157j60871630r6c3b27c4d3245cb9@mail.gmail.com> <1207576676.5331.49.camel@felipe> <47FA507D.2070108@cschneid.com> <5CB53203-F3E5-46F2-89A8-F331B2CB9017@pooteeweet.org> <47FA60F8.7060702@zend.com> X-Mailer: Apple Mail (2.919.2) X-backendmedia-com-MailScanner-Information: Please contact the ISP for more information X-backendmedia-com-MailScanner: Found to be clean X-backendmedia-com-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.135, required 6, AWL 0.04, RDNS_DYNAMIC 0.10) X-backendmedia-com-MailScanner-From: mls@pooteeweet.org X-Spam-Status: No Subject: Re: [PHP-DEV] Return type hints From: mls@pooteeweet.org (Lukas Kahwe Smith) On 07.04.2008, at 19:59, Stanislav Malyshev wrote: > Hi! > >> Right if at all I would agree on having a type hint "scalar", but >> not a separate one per type. > > IMO (as already was discussed like 10 times?) "scalar" makes no > sense. It doesn't save you any checks, and doesn't provide any > useful information and can't perform any useful conversions, etc. > for you. BTW, the statement to usefulness of "scalar" is that no C > API function ever needed "scalar" as parameter type - and while we > had a lot of formats for zend_parse_parameters, including objects, > arrays, resources, numbers, strings of various kinds, callbacks, > etc., we don't have "scalar" one. I consider it a strong indication > that this idea is not as good as it might seem. Maybe we should be thinking more in terms of "scalar" sometimes, then we might not have gotten that BC break in array_merge(). regards, Lukas