Now you can handle properties using function get and function
set, which will make your properties more like methods....
why use it? Why not just do methods then? It was my
understanding that properties are simple and easy, and when you
need more advanced functionality you use methods. Well, now we
methods for properties which defeat the purpose to me.
What you are referring to are called implicit getter and
setter (most languages offer them) methods which you can use but
don't have to. Some programmers love them, some hate them.
In some situations, like setting a lot of properties on an
object, they can come in handy.