Re: Language constructs and callability

From: Date: Fri, 19 Jul 2013 17:23:02 +0000
Subject: Re: Language constructs and callability
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Fri, Jul 19, 2013 at 5:36 PM, Daniel Lowrey <[email protected]> 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


Thread (22 messages)

« previous php.internals (#68212) next »