Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88870 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34847 invoked from network); 19 Oct 2015 09:46:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Oct 2015 09:46:36 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:42368] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/93-07045-AFBB4265 for ; Mon, 19 Oct 2015 05:46:34 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 3A726E20D6; Mon, 19 Oct 2015 10:46:30 +0100 (BST) Date: Mon, 19 Oct 2015 10:46:29 +0100 (BST) X-X-Sender: derick@whisky.home.derickrethans.nl To: Rowan Collins cc: internals@lists.php.net In-Reply-To: <561F6718.7020900@gmail.com> Message-ID: References: <0A.C2.33697.6AECE165@pb1.pair.com> <561ED07E.4060809@gmail.com> <561F6718.7020900@gmail.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: =?UTF-8?Q?Re=3A_=5BPHP-DEV=5D_=5BRFC=5D_Void_Return_Type_=28v0=2E2=2C_re=C3=B6pening=29?= From: derick@php.net (Derick Rethans) On Thu, 15 Oct 2015, Rowan Collins wrote: > Korvin Szanto wrote on 14/10/2015 23:55: > > If I capture the result of a "void" method and check if my result variable > > with isset(), I'll get false. This sounds like it's void of value to me. > > But why "invent" (as far as PHP is concerned) this new keyword of "void" to > mean exactly the same thing "null" already means - absence of a definite > value? It's already "invented" for PHP anyway: http://docs.hhvm.com/manual/en/hack.annotations.examples.php - example 2. cheers, Derick