Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32991 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99316 invoked by uid 1010); 30 Oct 2007 18:20:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99301 invoked from network); 30 Oct 2007 18:20:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Oct 2007 18:20:57 -0000 Authentication-Results: pb1.pair.com header.from=michaelm@swplumb.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=michaelm@swplumb.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain swplumb.com from 209.181.81.165 cause and error) X-PHP-List-Original-Sender: michaelm@swplumb.com X-Host-Fingerprint: 209.181.81.165 mail.swplumb.com Windows XP Pro SP1, 2000 SP3 Received: from [209.181.81.165] ([209.181.81.165:1537] helo=swplumb.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/74-05311-60677274 for ; Tue, 30 Oct 2007 13:20:56 -0500 Received: from michael-ms-computer.local [192.168.2.66] by swplumb.com with ESMTP (SMTPD-9.22) id A4C702BC; Tue, 30 Oct 2007 12:15:35 -0600 Message-ID: <47277600.6080102@swplumb.com> Date: Tue, 30 Oct 2007 12:20:48 -0600 User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: inline functions From: michaelm@swplumb.com (Michael McGlothlin) I'm not sure if this is the proper place to make a suggestion - if not please correct me. It'd be useful to have an inline function similar to create_function () but so that it'd only be used that once and would return the function results rather than the function itself. I often find myself writing long sections of code that aren't repetitive and I have to either create a function that'll only be used once, which pollutes my name space, or allow myself to have code mush. With an inline function I could mark blocks of code so that inputs and outputs would be cleaner and memory could be released more easily. This would make code easier to read, reduce accidental re-use of variables, and reduce memory usage. Thanks, Michael McGlothlin http://www.plumbersstock.com/