Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82685 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13727 invoked from network); 14 Feb 2015 13:07:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Feb 2015 13:07:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=addw@phcomp.co.uk; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=addw@phcomp.co.uk; sender-id=permerror Received-SPF: pass (pb1.pair.com: domain phcomp.co.uk designates 78.32.209.33 as permitted sender) X-PHP-List-Original-Sender: addw@phcomp.co.uk X-Host-Fingerprint: 78.32.209.33 freshmint.phcomp.co.uk Received: from [78.32.209.33] ([78.32.209.33:57278] helo=mint.phcomp.co.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/71-03565-6A84FD45 for ; Sat, 14 Feb 2015 08:07:50 -0500 Received: from addw by mint.phcomp.co.uk with local (Exim 4.72) (envelope-from ) id 1YMcRn-00009u-7N for internals@lists.php.net; Sat, 14 Feb 2015 13:07:47 +0000 Date: Sat, 14 Feb 2015 13:07:47 +0000 To: internals@lists.php.net Message-ID: <20150214130747.GV22130@phcomp.co.uk> Mail-Followup-To: internals@lists.php.net References: <680FB44D-B42D-4898-A28B-FA1C6E4D4D1A@ajf.me> <012c01d04812$bf8e7560$3eab6020$@php.net> <0E369BA2-363A-4AF5-88F2-3643CCE55E5C@ajf.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0E369BA2-363A-4AF5-88F2-3643CCE55E5C@ajf.me> Organization: Parliament Hill Computers Ltd User-Agent: Mutt/1.5.20 (2009-12-10) Subject: Re: [PHP-DEV] [RFC] Void Return Type From: addw@phcomp.co.uk (Alain Williams) 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