Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82170 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45327 invoked from network); 8 Feb 2015 20:43:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Feb 2015 20:43:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=francois@tekwire.net; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=francois@tekwire.net; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain tekwire.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@tekwire.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:5988] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A7/73-26926-97AC7D45 for ; Sun, 08 Feb 2015 15:43:38 -0500 Received: from moorea (unknown [82.240.16.115]) by smtp2-g21.free.fr (Postfix) with ESMTP id D390F4B0116; Sun, 8 Feb 2015 21:40:06 +0100 (CET) Reply-To: To: "'Andrea Faulds'" , "'PHP Internals'" References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> In-Reply-To: Date: Sun, 8 Feb 2015 21:43:32 +0100 Message-ID: <041a01d043df$e75045b0$b5f0d110$@tekwire.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJMIZG9mXkdirFXmuP9r5ZK3xIuzQGdv7Z4m+KLogA= Content-Language: fr X-Antivirus: avast! (VPS 150208-0, 08/02/2015), Outbound message X-Antivirus-Status: Clean Subject: RE: [PHP-DEV] Syntactical change to Scalar Type Hints RFC From: francois@tekwire.net (=?utf-8?Q?Fran=C3=A7ois_Laupretre?=) > 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 of modes within one > file, and you=E2=80=99d avoid the quirks of declare(). ' Data