At 07:03 PM 9/27/00 -0700, Randal L. Schwartz wrote:
>So, I'd be happy to make everything an object under three conditions:
>
>1) it doesn't interfere with *optimized* language constructs for
>the most common tasks

If it goes in it won't.

>2) it isn't being put in just to satisfy some theory that making
>everything an object will make everything easier

I can't picture Larry doing it if this is the only good reason.

>3) it doesn't slow things down for those of us who want to use the
>optimized interfaces and not worry about objects until we get to
>500-line programs

It's not gonna.

Worst case the optimizer will turn this:

   $len = $foo->length;

into this:

   $len = length($foo);

Sort of the way we handle double-quoted string interpolation now.

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to