Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67815 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58804 invoked from network); 25 Jun 2013 16:39:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jun 2013 16:39:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.45 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 209.85.215.45 mail-la0-f45.google.com Received: from [209.85.215.45] ([209.85.215.45:54749] helo=mail-la0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/66-49518-8C7C9C15 for ; Tue, 25 Jun 2013 12:39:37 -0400 Received: by mail-la0-f45.google.com with SMTP id fr10so12455548lab.4 for ; Tue, 25 Jun 2013 09:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=z8HBZG9zxOa2heGAqXbaFo2I8gqrpWxmFa1BNr4B1Ro=; b=nExDlJKvVemk1O9fU05q/sr+56NFOUs14N1aVEkv9xahJ2yhaG5I0O+h1QxKNqpWLe zJAIv5mAYU/m2PDoosqUzo61WO6AIjiWe1tgmPEyS1MfpoOe3p0qnA5PQ4/Ym6OJAYbB nRdh9txWaW8o8xBKp/SRWpxwfgq7a4qah7uy5OwiINwtQshVDntthBLq9XmDWmnVlRi2 iuYKdYPHG0T8Zrvnj0i19rOZmllCehMxnqOque+/AVRJLx6WTiENoxW3Qp+tEcW11M2+ W2os5PAr2+n8pfso64pvqS4hSOjuWDnesfJIREJupdFbI/QpDlQr3sMol5Qbp11n7ukV Padw== MIME-Version: 1.0 X-Received: by 10.112.76.106 with SMTP id j10mr310593lbw.19.1372178373563; Tue, 25 Jun 2013 09:39:33 -0700 (PDT) Sender: mike.php.net@gmail.com Received: by 10.114.184.47 with HTTP; Tue, 25 Jun 2013 09:39:33 -0700 (PDT) In-Reply-To: References: Date: Tue, 25 Jun 2013 18:39:33 +0200 X-Google-Sender-Auth: 2tszYDDQguSwRr9lAzDFFoq5JP8 Message-ID: To: Laruence Cc: Anthony Ferrara , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] RFC: Protocol Type Hinting From: mike@php.net (Michael Wallner) On 25 June 2013 18:32, Laruence wrote: > On Tue, Jun 25, 2013 at 11:57 PM, Anthony Ferrara wrote: >> Hey all, >> >> https://wiki.php.net/rfc/protocol_type_hinting >> What do you think? > > Hey: > Just one question, usage? why we need this? (run-time check is > slow and I can not think out of a case then we must need it) I'd rather see a proposal for: $foo->setLogger(new Logger() { function log($message) { fprintf(STDERR, "%s\n", $message); } }); Just sayin... -- Regards, Mike