Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68213 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44057 invoked from network); 19 Jul 2013 17:28:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jul 2013 17:28:50 -0000 Authentication-Results: pb1.pair.com header.from=rdlowrey@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rdlowrey@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.169 as permitted sender) X-PHP-List-Original-Sender: rdlowrey@gmail.com X-Host-Fingerprint: 209.85.223.169 mail-ie0-f169.google.com Received: from [209.85.223.169] ([209.85.223.169:64963] helo=mail-ie0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/CC-13120-15779E15 for ; Fri, 19 Jul 2013 13:28:50 -0400 Received: by mail-ie0-f169.google.com with SMTP id 10so10131758ied.28 for ; Fri, 19 Jul 2013 10:28:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=jxAPB2axnCgdw6dM/n5J0luHmDh5aEgi589dLZpIm30=; b=K5ZqCxl+AjnTsCCYfnbxPQ/PnVxVrJY8BrqxM067+6TEphAevnyzE/nDOs9WyZ5LLs AykPVhrTNDhN2L9QNRizosiG8zrS7GL22t14tE545ndDNgWVyAwa5KvslVBz9oXJO7qy 0vrc1Sr1I8aFl3mYPsIKyuWVta/aby4pIPd4zS1qXqwEVmdMBrnB5p9M1Qprj0Oy1AMT sMnQ7po9W34tTmac5CHFaAWuJhmLrmVIpMpkIPl3YUeSQjkh4VF8s1vDxrt4NI1fmw0h pA7aUS18hcAj86zwcBSdh5EUkJs3rI7X84ptKloxLAY4UrWldMpyxKyaapjmMdzWZMz3 uH1A== MIME-Version: 1.0 X-Received: by 10.42.62.198 with SMTP id z6mr11790468ich.7.1374254927526; Fri, 19 Jul 2013 10:28:47 -0700 (PDT) Received: by 10.50.7.1 with HTTP; Fri, 19 Jul 2013 10:28:47 -0700 (PDT) In-Reply-To: References: Date: Fri, 19 Jul 2013 13:28:47 -0400 Message-ID: To: Arpad Ray Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=20cf30223cabc940e004e1e0a8dd Subject: Re: [PHP-DEV] Language constructs and callability From: rdlowrey@gmail.com (Daniel Lowrey) --20cf30223cabc940e004e1e0a8dd Content-Type: text/plain; charset=ISO-8859-1 It would more than likely create some semantic nightmares. I can envision people doing numpty things like: array_map('include', $dependencyFilesArr); While it works, it somewhat obscures what you're trying to accomplish in the code. The maintainability nightmare alone may be enough to counterbalance any benefits. Then again, who needs readability/maintainability when you can write hopelessly impenetrable code? :) On Fri, Jul 19, 2013 at 1:23 PM, Arpad Ray wrote: > On Fri, Jul 19, 2013 at 5:36 PM, Daniel Lowrey wrote: > >> How deeply ingrained into the engine is this behavior? Is there any chance >> of language constructs ever passing the tests for callability or is that >> just a pipe dream that's not worth the implementation effort? >> > > It's actually pretty trivial to provide functions for echo and print (just > did a 5 minute POC), but I'm not convinced it's very useful. I don't think > isset would be possible other than making it equivalent to an is_not_null. > > If the aim is some sort of consistency, what would you do with constructs > like define() or include()? > > Arpad > --20cf30223cabc940e004e1e0a8dd--