Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80447 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55894 invoked from network); 14 Jan 2015 09:17:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jan 2015 09:17:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:52141] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/91-43840-D1436B45 for ; Wed, 14 Jan 2015 04:17:17 -0500 Received: by mail-we0-f170.google.com with SMTP id w61so7585796wes.1 for ; Wed, 14 Jan 2015 01:17:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=VvBMXfi1INYo9jWLdO++btTemncOuT0jB33q1pre+SA=; b=ApRGHuJPDPEa7Ry9Z/L73WvFugBKPwwM9lBr1p0Yx+XY8YZkV1wVxzfoJpGveFfFGv IiSApdN1GOoKVYI1zvD8ZlB4XHTVV9yiSWqLih286O3q/Pk9fP0uizM6QIZ/Om8+NEan LFQGSRGi+RJK37JxSCVPa/kqXGuTw0jVxeeiJ8ZhgLJonYN/6+t+M/soHm4eqt7vb7do 9SbqErBuA9/V47wZXLzzU9Z1Z1rvYorpa3zSVTn88eBCWbco4dDBLEspIy0bx5ySkL5M z1Cs/nGQhBit2K68wj+itjhGkdAwNfaSQBs2JDBAd/x20keweMXf5H0u3YOmGmylB+Vf tZMA== MIME-Version: 1.0 X-Received: by 10.194.24.195 with SMTP id w3mr4727124wjf.135.1421227032649; Wed, 14 Jan 2015 01:17:12 -0800 (PST) Received: by 10.216.50.139 with HTTP; Wed, 14 Jan 2015 01:17:12 -0800 (PST) In-Reply-To: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> Date: Wed, 14 Jan 2015 09:17:12 +0000 Message-ID: To: Andrea Faulds Cc: PHP Internals List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: leight@gmail.com (Leigh) On 14 January 2015 at 00:16, Andrea Faulds wrote: > Good evening, > > I=E2=80=99ve made some quite significant changes to my Scalar Type Hints = RFC, and bumped its version to 0.2. > > Here: https://wiki.php.net/rfc/scalar_type_hints > > This is a new thread because I=E2=80=99ve made a significant revision to = the RFC, so it=E2=80=99d be sensible to separate discussion of the updated = RFC from the v0.1 RFC. > > Please tell me your thoughts. > I really don't like this behaviour being changed at the call site. If I design a function that I _know_ should only take a string, then I want it to be an error if the user supplies anything else, so that they know they messed up. Also, there's this, that you might be able to re-purpose. https://github.com/php/php-src/blob/d5dd29/Zend/zend_compile.c#L7199