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?
$obj.method isn't a Java-ism; it's used by both C++ and by Simula (for
class variables), and in C for struct members, which given the origins of
those languages means I wouldn't be surprised if it were in Algol.
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.
--
Russ Allbery ([EMAIL PROTECTED]) <http://www.eyrie.org/~eagle/>