On Mon, 2007-02-05 at 17:46 -0600, Richard Lynch wrote:
>
> On Mon, February 5, 2007 12:05 pm, Stanislav Malyshev wrote:
> >> So now we have an invisible operator with a magical symbol '[' which
> >> *sometimes* means create an array, but *sometimes* means to
> >> de-construct an array into individual variables?
> >
> > Yep. We also have an invisible magical operator (), which sometimes
> > means function definition, sometimes means expression grouping,
> > sometimes means delimiter, sometimes means function call and sometimes
> > means regular expression grouping. How do we manage? ;)
> 
> How you manage is that a zillion newbies use:
> 
> include("foo.inc");
> echo("foo.inc");
> 
> and they don't even realize that the () doesn't mean what they think
> it means, and it "just works" because it's a no-op.

It's not a no-op, I'm sure it actually applies parenthesis precedence on
the expression "foo.inc" :) Personally, I use the parenthesis when using
include and require because I prefer it that way... though I don't doubt
some newbies think it's a function *heh*.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to