Re: Why is some_function()[some_index] invalid syntax?
| From: | Larry Garfield | Date: | Sat, 12 Jan 2008 00:53:16 +0000 |
| Subject: | Re: Why is some_function()[some_index] invalid syntax? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267132@lists.php.net to get a copy of this message | ||
On Friday 11 January 2008, Zoltán Németh wrote:
> > So, make all your functions return objects, and have the object have a
> > method called get or index or something like that that returns the index
> > requested. :)
> >
> > Better yet, make everything an object: String, Numeric, Array, etc
>
> and call it Java ;)
More like C#. :-) Java still has primitives.
--
Larry Garfield AIM: LOLG42
larry@garfieldtech.com ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson