Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82172 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47568 invoked from network); 8 Feb 2015 20:53:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Feb 2015 20:53:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.208 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.208 imap2-3.ox.privateemail.com Received: from [192.64.116.208] ([192.64.116.208:49324] helo=imap2-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/E3-26926-FBCC7D45 for ; Sun, 08 Feb 2015 15:53:21 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 1306B8C0081; Sun, 8 Feb 2015 15:53:17 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap2.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap2.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Wzc80yz13PIF; Sun, 8 Feb 2015 15:53:16 -0500 (EST) Received: from [10.129.56.79] (dab-far1-h-72-9.dab.02.net [82.132.223.148]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 2F0268C0080; Sun, 8 Feb 2015 15:53:15 -0500 (EST) References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> <041a01d043df$e75045b0$b5f0d110$@tekwire.net> Mime-Version: 1.0 (1.0) In-Reply-To: <041a01d043df$e75045b0$b5f0d110$@tekwire.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: Cc: PHP Internals X-Mailer: iPhone Mail (12B466) Date: Sun, 8 Feb 2015 20:53:10 +0000 To: "" Subject: Re: [PHP-DEV] Syntactical change to Scalar Type Hints RFC From: ajf@ajf.me (Andrea Faulds) Hi Fran=C3=A7ois, On 8 Feb 2015, at 20:43, Fran=C3=A7ois Laupretre wrot= e: >> De : Andrea Faulds [mailto:ajf@ajf.me] >> Instead, I=E2=80=99m wondering if the following might be better: >>=20 >> >=20 >> Which would be used like so: >>=20 >> >=20 >> function foobar(): int { >> return 1.0; // error! >> } >>=20 >> It=E2=80=99d be a per-file directive, so there=E2=80=99d be zero mixing o= f modes within one >> file, and you=E2=80=99d avoid the quirks of declare(). >=20 > '=20 > What would this mean : >=20 > Lines of data > ... > php code > ?> > Data > Code > ... >=20 > Would it be strict or not ? or will you interpret the first '