At 06:34 AM 4/24/2001 -0700, Russ Allbery wrote:
>David M Lloyd <[EMAIL PROTECTED]> writes:
> > On 24 Apr 2001, Russ Allbery wrote:
>
> >> The switch from -> to . makes perfect sense from a C perspective if we're
> >> turning objects into first-class entities rather than pointers; think
> >> about a struct versus a pointer to a struct.
> >>
> >> -> makes you remember that things are pointers.
>
> > What's wrong with using both? You could use -> if you're working with a
> > reference to an object, and you could use . if you're working with the
> > object itself.
>
>It seems relatively unlikely in the course of normal Perl that you're
>going to end up with very many references to objects.
And even if you do, I can guarantee that within 10 minutes of starting code
that does, you'll be cursing at perl. "Why can't you just DWIM?" you will
curse. "You should be able to figure out that reference is to an object!"
If you don't, I certainly will. ;)
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk