Re: [RFC] Void Return Type (v0.2, reöpening)

From: Date: Mon, 19 Oct 2015 09:46:29 +0000
Subject: Re: [RFC] Void Return Type (v0.2, reöpening)
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-88870@lists.php.net to get a copy of this message
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

« previous php.internals (#88870) next »