On 24 Apr 2001, Russ Allbery wrote:

> Branden <[EMAIL PROTECTED]> writes:
> 
> > 1) Use $obj.method instead of $obj->method :
> 
> > The big question is: why fix what is not broken? Why introduce Javaisms
> > and VBisms to our pretty C/C++-oid Perl? Why brake compatibility with
> > Perl 5 code (and Perl 5 programmers) for a zero net gain?
> 
> 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.

- D

<[EMAIL PROTECTED]>

Reply via email to