Re: [RFC] Void Return Type

From: Date: Sat, 14 Feb 2015 13:07:47 +0000
Subject: Re: [RFC] Void Return Type
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-82685@lists.php.net to get a copy of this message
On Sat, Feb 14, 2015 at 12:26:08PM +0000, Andrea Faulds wrote: > We could do this, but for the longest time we've made all functions have some return > value, even ones which don't explicitly return one (they return NULL). I think it'd be > better not to change this. I expect IDEs and such could earn you about it, though. All *existing* functions have a return value. That would not change. If someone makes one of their functions void then where they use it could not be where a value is needed. So: expect it in new code; but in 5 years time that code will be mature. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include <std_disclaimer.h>

« previous php.internals (#82685) next »