Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88846 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90426 invoked from network); 16 Oct 2015 00:45:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Oct 2015 00:45:52 -0000 X-Host-Fingerprint: 2.123.167.169 unknown Received: from [2.123.167.169] ([2.123.167.169:16465] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/51-15862-EB840265 for ; Thu, 15 Oct 2015 20:45:51 -0400 Message-ID: <09.51.15862.EB840265@pb1.pair.com> To: internals@lists.php.net References: <0A.C2.33697.6AECE165@pb1.pair.com> <561F7D17.5050306@gmail.com> <561FCD9F.10104@gmail.com> <90.58.23021.E85DF165@pb1.pair.com> <561FD658.202@gmail.com> <185707F6-9B57-4103-90C2-21246510FC67@gmail.com> Date: Fri, 16 Oct 2015 01:45:46 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:41.0) Gecko/20100101 Firefox/41.0 SeaMonkey/2.38 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 2.123.167.169 Subject: =?UTF-8?Q?Re:_[PHP-DEV]_[RFC]_Void_Return_Type_=28v0.2=2c_re=c3=b6p?= =?UTF-8?Q?ening=29?= From: ajf@ajf.me (Andrea Faulds) Hi Korvin, Korvin Szanto wrote: > > Could we change the documentation for existing functions to return null, > and start using void properly moving forward? > As I have stated several times now, we're not "misusing" void. PHP is not the only language to use the word in this manner. But why should we change the documentation anyway? We've used void for a very long time, at least 17 years[0]. We don't just use it in the PHP manual, it's also used in docblocks and the PHP source code's function prototypes. It's the commonly-accepted, widely-used term. Until now this was uncontroversial. Why should we move heaven and earth when there's nothing wrong? [0] https://web.archive.org/web/19991002011107/http://php.net/manual/function.sort.php3 -- Andrea Faulds http://ajf.me/