develooper Front page | perl.perl6.language | Postings from December 2004

Python is not Java...but will Perl 6 be?

Thread Next
From:
John Siracusa
Date:
December 3, 2004 11:07
Subject:
Python is not Java...but will Perl 6 be?
Message ID:
BDD6231C.1DA42%siracusa@mindspring.com
From http://dirtsimple.org/2004/12/python-is-not-java.html

"In Java, you have to use getters and setters because using public fields
gives you no opportunity to go back and change your mind later to using
getters and setters. So in Java, you might as well get the chore out of the
way up front. In Python, this is silly, because you can start with a normal
attribute and change your mind at any time, without affecting any clients of
the class. So, don't write getters and setters."

I'd like to be able to s/Python/Perl 6/ above, but after many discussions on
this topic, I'm still not sure if I can.

-John



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About