Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73780 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31111 invoked from network); 24 Apr 2014 18:04:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2014 18:04:10 -0000 Authentication-Results: pb1.pair.com header.from=rdlowrey@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rdlowrey@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.169 as permitted sender) X-PHP-List-Original-Sender: rdlowrey@gmail.com X-Host-Fingerprint: 209.85.223.169 mail-ie0-f169.google.com Received: from [209.85.223.169] ([209.85.223.169:35714] helo=mail-ie0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/D1-20919-91259535 for ; Thu, 24 Apr 2014 14:04:09 -0400 Received: by mail-ie0-f169.google.com with SMTP id to1so2779550ieb.28 for ; Thu, 24 Apr 2014 11:04:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=dFW+ciHIVBOzWCchU3HOXMo4GFhfTcDZaKj09r+RxuU=; b=RXOiY43t1bZQb9tx/1A7578/RnI0hXFB/oby4fNn+9CAXY037m74SX9/bOqLQgcoiR zwdW8V4eh22gwP16xCBW0/oG6NeMnphV7XeINIMypAHf/CbdMbWqBXLpz54eICjjJXMp 5uV4SVLVc7E11XzsElOvDRe2gcULR8tcBRrKDPXLrE7bOsM5kR/9tvppOIe58p7gkGUI hyuPxbjZegP1Ob+WPT9OU/e5yqP+fFvC8mShA3IK3FXzs40vsIHjcR9/HiPilLHMWHS9 VVk1vK0ayRxBnlbtkFI+eOcyA1Zz5gjgZmCJkWBtHLVSahtmjBY3arsQN25znSmnAzdL ebaw== MIME-Version: 1.0 X-Received: by 10.50.62.178 with SMTP id z18mr74648igr.49.1398362646204; Thu, 24 Apr 2014 11:04:06 -0700 (PDT) Sender: rdlowrey@gmail.com Received: by 10.50.29.145 with HTTP; Thu, 24 Apr 2014 11:04:06 -0700 (PDT) Date: Thu, 24 Apr 2014 14:04:06 -0400 X-Google-Sender-Auth: Y-iooIyr8-yi_-hQZNTma0BwI5w Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7bd760c2cbfc5004f7cdac82 Subject: Re: Return Type Declarations From: rdlowrey@php.net (Daniel Lowrey) --047d7bd760c2cbfc5004f7cdac82 Content-Type: text/plain; charset=UTF-8 > On Thu, Apr 24, 2014 at 09:59:19AM -0600, Levi Morrison wrote: >> - This RFC does not add, modify, or remove keywords at all; this notably >> excludes type-hints for scalars. Supporting scalar type declarations is >> outside the scope of this RFC; if you are interested in supporting scalar >> type declarations please discuss it elsewhere. > Well, I think that that should be added here also your future work of 'void'. > So, add: int, float, numeric (int or float), string, bool, void. > > Sorry. Addressing scalar return hints in this proposal would be foolish without also introducing scalar parameter typing. Beyond that, addressing scalars would almost certainly doom the RFC to rejection as scalar typing is like the Vietnam of php-src ;) At first glance this looks to me like a workable solution precisely because it allows progress while avoiding the scalar quagmire. --047d7bd760c2cbfc5004f7cdac82--