Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93452 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93595 invoked from network); 23 May 2016 17:06:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2016 17:06:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.99 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.99 blu004-omc2s24.hotmail.com Received: from [65.55.111.99] ([65.55.111.99:64608] helo=BLU004-OMC2S24.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9B/BA-14293-77833475 for ; Mon, 23 May 2016 13:06:01 -0400 Received: from BLU436-SMTP126 ([65.55.111.71]) by BLU004-OMC2S24.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Mon, 23 May 2016 10:05:57 -0700 X-TMN: [wHlD1kpggqCl+eoHbskFbYvKp5DkDuPF] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) In-Reply-To: Date: Mon, 23 May 2016 19:05:50 +0200 CC: "internals@lists.php.net" Content-Transfer-Encoding: quoted-printable References: To: Nikita Nefedov X-Mailer: Apple Mail (2.3112) X-OriginalArrivalTime: 23 May 2016 17:05:54.0934 (UTC) FILETIME=[5E2C0960:01D1B515] Subject: Re: [PHP-DEV] [RFC] [Vote] Callable types (now: Callable prototypes) From: bobwei9@hotmail.com (Bob Weinand) Hey, I have a question regarding strict/weak types. Currently, you cannot pass a callable function(string $foo) {} to a = signature requiring (callable(int)), if I understood the code correctly. But weak types actually should allow that as it's totally fine to pass = an integer to a string in weak mode. Is there any particular reason to this seemingly arbitrary restriction? Bob > Am 23.05.2016 um 16:27 schrieb Nikita Nefedov : >=20 > Evening internals, >=20 > With this message I'd like to go to vote > with the Callable prototypes RFC targeted at 7.1: > https://wiki.php.net/rfc/callable-types >=20 > We've renamed it (previously was "Callable types") as RFC names often > dictate how users will call the feature and I want it to be more > accurate/descriptive. >=20 > Also the reflection part was added although I'm short on time = currently, > so implementation for that will be ready later. (speaking of = implementation, > it also currently doesn't use cache_slots - also something I'll add = when > I have a little bit of time) >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20 >=20