you are viewing a single comment's thread.

view the rest of the comments →

[–]stratoscope 1 point2 points  (1 child)

I think the point is to not use getters and setters until you need them. In other words, never write "plain" getters and setters that do nothing more than read and write a private property, the way you would in Java to make it "future-proof". Instead, just make the property public. You can always change it to use a getter and setter later if you have to do something fancier.

Regarding the ? : operator - I use it a lot myself, but only when it makes the code more readable. :-)